diff options
author | Andrew Dolgov <[email protected]> | 2005-11-16 10:54:33 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-16 10:54:33 +0100 |
commit | e65af9c11056a7dacb288ba8bf5c59cf80fd304e (patch) | |
tree | 7e2882f4e23331cb375bb081e349642c72e503c7 /backend.php | |
parent | 140aae812a7d83af8125bfbe13c75e20eee1fdcb (diff) |
op=updateAllFeeds shortcut for batch calls
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backend.php b/backend.php index c0b20b1db..83a0ab51d 100644 --- a/backend.php +++ b/backend.php @@ -3,7 +3,7 @@ $op = $_GET["op"]; - if ($op == "rpc") { + if ($op == "rpc" || $op == "updateAllFeeds") { header("Content-Type: application/xml"); } @@ -1489,6 +1489,18 @@ } + if ($op == "updateAllFeeds") { + update_all_feeds($link, true); + + print "<rpc-reply>"; + getLabelCounters($link); + getFeedCounters($link); + getTagCounters($link); + getGlobalCounters($link); + print "</rpc-reply>"; + + } + db_close($link); ?> |