]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
update.php: update feedbrowser, purge orphans and cleanup cached tags in the update...
[tt-rss.git] / 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") {