1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 05:39:14 +00:00

unify houskeeping stuff, increase spawn interval

This commit is contained in:
Andrew Dolgov
2013-04-24 14:54:59 +04:00
parent 654650857f
commit e2cf81e214
6 changed files with 25 additions and 46 deletions

View File

@@ -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);
}