1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

regenerate feedbrowser cache from the update daemon

This commit is contained in:
Andrew Dolgov
2009-01-16 12:06:42 +01:00
parent 6c8feb8f12
commit e3b5469373
3 changed files with 20 additions and 33 deletions

View File

@@ -174,8 +174,15 @@
// $last_purge = time();
// }
// Call to the feed batch update function
update_daemon_common($link);
// Call to the feed batch update function
// or regenerate feedbrowser cache
if (rand(0,100) > 50) {
update_daemon_common($link);
} else {
$count = update_feedbrowser_cache($link);
_debug("Finished, $count feeds processed.");
}
_debug("Elapsed time: " . (time() - $start_timestamp) . " second(s)");