From: Andrew Dolgov Date: Sat, 13 Nov 2010 18:03:31 +0000 (+0300) Subject: misc daemon updates X-Git-Tag: 1.5.0~230^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e3b42c5a809b57bac99caa48b2fca954b7985cab;p=tt-rss.git misc daemon updates --- diff --git a/functions.php b/functions.php index b768d217..572ecf10 100644 --- a/functions.php +++ b/functions.php @@ -5798,12 +5798,6 @@ // Send feed digests by email if needed. if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link); - purge_orphans($link); - - $rc = cleanup_tags($link, 14, 50000); - - if ($debug) _debug("$rc uncached tags cleaned."); - } // function update_daemon_common function sanitize_article_content($text) { diff --git a/update.php b/update.php index ac1d84c8..873928b6 100755 --- a/update.php +++ b/update.php @@ -85,7 +85,13 @@ 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."); } } diff --git a/update_daemon2.php b/update_daemon2.php index 5ffc4f54..63f218cc 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -214,7 +214,14 @@ 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."); + } _debug("Elapsed time: " . (time() - $start_timestamp) . " second(s)");