From: Andrew Dolgov Date: Sat, 30 Mar 2013 13:44:22 +0000 (+0400) Subject: tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of... X-Git-Tag: 1.7.6~129 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=842c2ab4511d4feb65f295340137aebf424523a3;p=tt-rss.git tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of update --- diff --git a/update_daemon2.php b/update_daemon2.php index 2933ccef..450b9339 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -244,15 +244,15 @@ } // Call to the feed batch update function - // or regenerate feedbrowser cache + // and maybe regenerate feedbrowser cache $nf = 0; - if (rand(0,100) > 30) { - _debug("Waiting before update.."); - sleep(rand(5,15)); - $nf = update_daemon_common($link); - } else { + _debug("Waiting before update.."); + sleep(rand(5,15)); + $nf = update_daemon_common($link); + + if (rand(0,100) > 50) { $count = update_feedbrowser_cache($link); _debug("Feedbrowser updated, $count feeds processed.");