From e3b5469373d81134d2752f5bcaa08460961f3676 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 16 Jan 2009 12:06:42 +0100 Subject: regenerate feedbrowser cache from the update daemon --- update_daemon2.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'update_daemon2.php') 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)"); -- cgit v1.2.3-54-g00ecf