]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak daemon2 to run feedbrowser/etc tasks after update randomly, not instead of...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Mar 2013 13:44:22 +0000 (17:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Mar 2013 13:44:22 +0000 (17:44 +0400)
update_daemon2.php

index 2933ccef015e7aa36fdf98aade849d279eb09435..450b9339dc14784e0e49ae381241b7de0c7995b3 100755 (executable)
                                        }
 
                                        // 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.");