viewfeed: enable counters reply, but with rate limit (180 sec)

This commit is contained in:
Andrew Dolgov 2008-05-20 09:50:58 +01:00
parent 94047498ff
commit 9e70f3b3ff
1 changed files with 5 additions and 3 deletions

View File

@ -288,9 +288,11 @@
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);