diff options
author | Andrew Dolgov <[email protected]> | 2008-05-20 09:50:58 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-20 09:50:58 +0100 |
commit | 9e70f3b3ffa3140f5cc1d7154019b831d7c4ca2a (patch) | |
tree | 85c956314c3f7d1a7b77ab9720afabab35c9443c | |
parent | 94047498ffb3198594c83f059fd7eb1085d21086 (diff) |
viewfeed: enable counters reply, but with rate limit (180 sec)
-rw-r--r-- | backend.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backend.php b/backend.php index a6cb18a49..692f35ff5 100644 --- a/backend.php +++ b/backend.php @@ -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); |