X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=7062e8e354cd9bc08a205566a742b18ccf8de72e;hb=dc24b520ccea0f092ea44f97352de20a796f4954;hp=c8556a61e6d499b1bbe223f2d6a039db03df9f9e;hpb=8ccaff02b50c32acb6162f9f527bf2801f725ace;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index c8556a61..7062e8e3 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -1,12 +1,10 @@ -#!/usr/bin/php +#!/usr/bin/env php 30) { update_daemon_common($link); } else { $count = update_feedbrowser_cache($link); - _debug("Finished, $count feeds processed."); + _debug("Feedbrowser updated, $count feeds processed."); + + purge_orphans($link, true); + + $rc = cleanup_tags($link, 14, 50000); + + _debug("Cleaned $rc cached tags."); + + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op); } _debug("Elapsed time: " . (time() - $start_timestamp) . " second(s)"); - + db_close($link); // We are in a fork.