]> git.wh0rd.org - tt-rss.git/commitdiff
daemon: rate limit in-between feed updates
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 08:06:09 +0000 (09:06 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 08:06:09 +0000 (09:06 +0100)
update_daemon.php

index b780c7f7ef073c7c94f2181a379b553974b97e32..62f0982fc3b6c712e89ee558abb76ac4b9ef12f6 100644 (file)
@@ -89,6 +89,7 @@
        
                                print "Updating...\n";  
                                update_rss_feed($link, $line["feed_url"], $line["id"], true);   
+                               sleep(3); // prevent flood (FIXME make this an option?)
                        } else {
                                print "Update not needed.\n";
                        }