From e2cf81e21406f0b507446cf369f7da172ce9da14 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Apr 2013 14:54:59 +0400 Subject: unify houskeeping stuff, increase spawn interval --- update.php | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 0853f3dd5..d4160c7ba 100755 --- a/update.php +++ b/update.php @@ -148,18 +148,8 @@ } if (isset($options["feeds"])) { - // Update all feeds needing a update. update_daemon_common(); - - // Update feedbrowser - $count = update_feedbrowser_cache(); - _debug("Feedbrowser updated, $count feeds processed."); - - // Purge orphans and cleanup tags - purge_orphans( true); - - $rc = cleanup_tags( 14, 50000); - _debug("Cleaned $rc cached tags."); + housekeeping_common(true); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); } @@ -185,15 +175,8 @@ } update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT); + housekeeping_common(true); - $count = update_feedbrowser_cache(); - _debug("Feedbrowser updated, $count feeds processed."); - - purge_orphans( true); - - $rc = cleanup_tags( 14, 50000); - - _debug("Cleaned $rc cached tags."); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); } -- cgit v1.2.3