tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of update

This commit is contained in:
Andrew Dolgov 2013-03-30 17:44:22 +04:00
parent e81610d9ef
commit 842c2ab451
1 changed files with 6 additions and 6 deletions

View File

@ -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 {
if (rand(0,100) > 50) {
$count = update_feedbrowser_cache($link);
_debug("Feedbrowser updated, $count feeds processed.");