]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewfeed: enable counters reply, but with rate limit (180 sec)
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 08:50:58 +0000 (09:50 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 08:50:58 +0000 (09:50 +0100)
backend.php

index a6cb18a499d2bbc8c86e105273e4bff698cea34e..692f35ff52eeab6cb1adc014b0d465c0f25bcdb5 100644 (file)
 
                        if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
 
-                       //print "<counters>";
-                       //getAllCounters($link, $omode, $feed);
-                       //print "</counters>";
+                       if (time() - $_SESSION["get_all_counters_stamp"] > 180) {
+                               print "<counters>";
+                               getAllCounters($link, $omode, $feed);
+                               print "</counters>";
+                       }
 
                        if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);