diff options
Diffstat (limited to 'update_daemon2.php')
-rw-r--r-- | update_daemon2.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index 08f5d74c3..a85bc1f52 100644 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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)"); |