]> git.wh0rd.org Git - tt-rss.git/commitdiff
update.php: update feedbrowser, purge orphans and cleanup cached tags in the update...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 13 Apr 2011 11:48:20 +0000 (15:48 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 13 Apr 2011 11:48:20 +0000 (15:48 +0400)
update.php

index ac785373d34858dbf4a11086cc73460bb8ab8922..4598e7c66f3db942189e4dc100ef8577141214d0 100755 (executable)
        if ($op == "-feeds") {
                // Update all feeds needing a update.
                update_daemon_common($link);
+
+               // Update feedbrowser
+               $count = update_feedbrowser_cache($link);
+               _debug("Feedbrowser updated, $count feeds processed.");
+
+               // Purge orphans and cleanup tags
+               purge_orphans($link, true);
+
+               $rc = cleanup_tags($link, 14, 50000);
+               _debug("Cleaned $rc cached tags.");
        }
 
        if ($op == "-feedbrowser") {