summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-30 17:44:22 +0400
committerAndrew Dolgov <[email protected]>2013-03-30 17:44:22 +0400
commit842c2ab4511d4feb65f295340137aebf424523a3 (patch)
treea60e1e867cfa7e706e30706d7950f0271e13aba0 /update_daemon2.php
parente81610d9ef6b20400dfc1ab13b1d28cc0de32a84 (diff)
tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of update
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index 2933ccef0..450b9339d 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.");