op=updateAllFeeds shortcut for batch calls
This commit is contained in:
parent
140aae812a
commit
e65af9c110
2 changed files with 14 additions and 2 deletions
14
backend.php
14
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);
|
||||
?>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue