summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-20 14:39:14 +0400
committerAndrew Dolgov <[email protected]>2013-05-20 14:39:14 +0400
commit830f6f08b48dcb2237ad603a5ae1df7d30c912c9 (patch)
treedd619dda5d83328c3c476fe160899eae68216713 /update.php
parent9e40bd3c334f980d06a7a6f187d761ae31019df4 (diff)
daemon2: only perform houskeeping on task 0
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
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);
}