Merge branch 'housekeeping_task' into 'master'

only run housekeeping on task 0 when --feeds is invoked with pidlock and task...

See merge request tt-rss/tt-rss!159
This commit is contained in:
Andrew Dolgov 2025-07-04 13:02:54 +03:00
commit 0034cd69f8

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