only run housekeeping on task 0 when --feeds is invoked with pidlock and task id, similar to daemon-loop

This commit is contained in:
Andrew Dolgov 2025-07-04 13:00:26 +03:00
parent 629535329d
commit 2e62d27b9f
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -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);
}