diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:00:26 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:00:26 +0300 |
| commit | 2e62d27b9f1e52bccb92a9795b8c36c9c64bba73 (patch) | |
| tree | 8482c8d91f313a83668a5a167d96f6344284f967 | |
| parent | 629535329df916ac76359a334b21933be75d80e4 (diff) | |
only run housekeeping on task 0 when --feeds is invoked with pidlock and task id, similar to daemon-loop
| -rwxr-xr-x | update.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/update.php b/update.php index 9df6a0abe..9751aead1 100755 --- a/update.php +++ b/update.php @@ -201,7 +201,9 @@ if (isset($options["feeds"])) { RSSUtils::update_daemon_common(Config::get(Config::DAEMON_FEED_LIMIT), $options); - RSSUtils::housekeeping_common(); + + if (!isset($options["pidlock"]) || $options["task"] == "0") + RSSUtils::housekeeping_common(); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, $options); } |