]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon2: only perform houskeeping on task 0
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 20 May 2013 10:39:14 +0000 (14:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 20 May 2013 10:39:14 +0000 (14:39 +0400)
update.php

index 5e4a5ab797b6e9051b39ac739ee5977007ca54ce..0141b1a8e5c31a072c3ebfe8219ab412f587d689 100755 (executable)
                }
 
                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);
        }