From: Andrew Dolgov Date: Wed, 16 Nov 2005 09:54:33 +0000 (+0100) Subject: op=updateAllFeeds shortcut for batch calls X-Git-Tag: schema_feature_freeze_for_1.1~293 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e65af9c11056a7dacb288ba8bf5c59cf80fd304e;p=tt-rss.git op=updateAllFeeds shortcut for batch calls --- diff --git a/backend.php b/backend.php index c0b20b1d..83a0ab51 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 ""; + getLabelCounters($link); + getFeedCounters($link); + getTagCounters($link); + getGlobalCounters($link); + print ""; + + } + db_close($link); ?> diff --git a/config.php-dist b/config.php-dist index b8005e1b..126ab4c0 100644 --- a/config.php-dist +++ b/config.php-dist @@ -58,7 +58,7 @@ // so that wget does not time out. Substitute your site name, tt-rss // path, and username/password as necessary. // - // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://username:password@www.your-site.xxx/tt-rss/backend.php?op=rpc&subop=updateAllFeeds&daemon=1" + // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://username:password@www.your-site.xxx/tt-rss/backend.php?op=updateAllFeeds&daemon=1" // define(DISPLAY_FEEDLIST_ACTIONS, false);