summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-07-04 13:18:50 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-07-04 13:18:50 +0300
commit79e0d6ecc2a9ad09e7ec73576d1b8a1ace6b361c (patch)
tree2cd772191e72256d1e7373b1e8f165a7b9dad954
parentc1542671c1a021f2643ea89be708db2f70237cb5 (diff)
run housekeeping tasks on task 0 if task id is passed, stop checking for pidlock
-rwxr-xr-xupdate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.php b/update.php
index 9751aead1..093b5ae82 100755
--- a/update.php
+++ b/update.php
@@ -202,7 +202,7 @@
if (isset($options["feeds"])) {
RSSUtils::update_daemon_common(Config::get(Config::DAEMON_FEED_LIMIT), $options);
- if (!isset($options["pidlock"]) || $options["task"] == "0")
+ if (!isset($options["task"]) || $options["task"] == "0")
RSSUtils::housekeeping_common();
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, $options);
@@ -249,7 +249,7 @@
RSSUtils::update_daemon_common(Config::get(Config::DAEMON_FEED_LIMIT), $options);
- if (!isset($options["pidlock"]) || $options["task"] == "0")
+ if (!isset($options["task"]) || $options["task"] == "0")
RSSUtils::housekeeping_common();
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, $options);