mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
fix updating for pgsql
increase default batch size remove random check between feedbrowser or update task executing
This commit is contained in:
21
update.php
21
update.php
@@ -184,24 +184,17 @@
|
||||
_debug("warning: unable to create stampfile\n");
|
||||
}
|
||||
|
||||
// Call to the feed batch update function
|
||||
// or regenerate feedbrowser cache
|
||||
update_daemon_common();
|
||||
|
||||
if (rand(0,100) > 30) {
|
||||
update_daemon_common();
|
||||
} else {
|
||||
$count = update_feedbrowser_cache();
|
||||
_debug("Feedbrowser updated, $count feeds processed.");
|
||||
$count = update_feedbrowser_cache();
|
||||
_debug("Feedbrowser updated, $count feeds processed.");
|
||||
|
||||
purge_orphans( true);
|
||||
purge_orphans( true);
|
||||
|
||||
$rc = cleanup_tags( 14, 50000);
|
||||
|
||||
_debug("Cleaned $rc cached tags.");
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);
|
||||
}
|
||||
$rc = cleanup_tags( 14, 50000);
|
||||
|
||||
_debug("Cleaned $rc cached tags.");
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);
|
||||
}
|
||||
|
||||
if (isset($options["cleanup-tags"])) {
|
||||
|
||||
Reference in New Issue
Block a user