mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 12:11:50 +00:00
op=updateAllFeeds shortcut for batch calls
This commit is contained in:
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);
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user