From 9e70f3b3ffa3140f5cc1d7154019b831d7c4ca2a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 May 2008 09:50:58 +0100 Subject: [PATCH] viewfeed: enable counters reply, but with rate limit (180 sec) --- backend.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend.php b/backend.php index a6cb18a4..692f35ff 100644 --- a/backend.php +++ b/backend.php @@ -288,9 +288,11 @@ if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info); - //print ""; - //getAllCounters($link, $omode, $feed); - //print ""; + if (time() - $_SESSION["get_all_counters_stamp"] > 180) { + print ""; + getAllCounters($link, $omode, $feed); + print ""; + } if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info); -- 2.39.5