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

master
Andrew Dolgov 12 years ago
parent e81610d9ef
commit 842c2ab451

@ -244,15 +244,15 @@
} }
// Call to the feed batch update function // Call to the feed batch update function
// or regenerate feedbrowser cache // and maybe regenerate feedbrowser cache
$nf = 0; $nf = 0;
if (rand(0,100) > 30) {
_debug("Waiting before update.."); _debug("Waiting before update..");
sleep(rand(5,15)); sleep(rand(5,15));
$nf = update_daemon_common($link); $nf = update_daemon_common($link);
} else {
if (rand(0,100) > 50) {
$count = update_feedbrowser_cache($link); $count = update_feedbrowser_cache($link);
_debug("Feedbrowser updated, $count feeds processed."); _debug("Feedbrowser updated, $count feeds processed.");

Loading…
Cancel
Save