summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-24 14:54:59 +0400
committerAndrew Dolgov <[email protected]>2013-04-24 14:54:59 +0400
commite2cf81e21406f0b507446cf369f7da172ce9da14 (patch)
tree6c00059871b892a30c02d17336f7ed9cf268cb1c /update.php
parent654650857ffc3e4914c9655528e1037939f75f54 (diff)
unify houskeeping stuff, increase spawn interval
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php21
1 files changed, 2 insertions, 19 deletions
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);
}