]> git.wh0rd.org Git - tt-rss.git/commitdiff
op=updateAllFeeds shortcut for batch calls
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Nov 2005 09:54:33 +0000 (10:54 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Nov 2005 09:54:33 +0000 (10:54 +0100)
backend.php
config.php-dist

index c0b20b1db61bf6bbfa7641506c829c2657615d35..83a0ab51d04f32c303a3782bb652577ac0f014ee 100644 (file)
@@ -3,7 +3,7 @@
 
        $op = $_GET["op"];
 
-       if ($op == "rpc") {
+       if ($op == "rpc" || $op == "updateAllFeeds") {
                header("Content-Type: application/xml");
        }
 
 
        }
 
+       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);
 ?>
 
index b8005e1b66927e00d1abe19d095d7ee603fcd95a..126ab4c09fc2e26db42f5be803c909e81bd1518e 100644 (file)
@@ -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);