]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak request_counters() rate limit
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:15:43 +0000 (15:15 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:15:43 +0000 (15:15 +0100)
feedlist.js

index bc38c13910b5dbafe57969315cadcb9ddd5febca..06fea27c7b76f09f60f4997c981cd2698a357527 100644 (file)
@@ -60,7 +60,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
 //             if (!offset) page_offset = 0;
 
                last_requested_article = 0;
-               counters_last_request = 0;
+               //counters_last_request = 0;
 
                if (feed == getActiveFeedId()) {
                        cache_invalidate("F:" + feed);
@@ -623,7 +623,7 @@ function request_counters() {
 //             if (getInitParam("sync_counters") == "1" || 
 //                             timestamp - counters_last_request > 10) {
 
-               if (timestamp - counters_last_request > 10) {
+               if (timestamp - counters_last_request > 15) {
                        debug("scheduling request of counters...");
                        window.setTimeout("request_counters_real()", 1000);
                        counters_last_request = timestamp;