diff options
author | Andrew Dolgov <[email protected]> | 2013-05-20 14:39:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-20 14:39:14 +0400 |
commit | 830f6f08b48dcb2237ad603a5ae1df7d30c912c9 (patch) | |
tree | dd619dda5d83328c3c476fe160899eae68216713 | |
parent | 9e40bd3c334f980d06a7a6f187d761ae31019df4 (diff) |
daemon2: only perform houskeeping on task 0
-rwxr-xr-x | update.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/update.php b/update.php index 5e4a5ab79..0141b1a8e 100755 --- a/update.php +++ b/update.php @@ -175,7 +175,9 @@ } update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT); - housekeeping_common(true); + + if (!isset($options["pidlock"]) || $options["task"] == 0) + housekeeping_common(true); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); } |