From: Andrew Dolgov Date: Tue, 20 May 2008 08:50:58 +0000 (+0100) Subject: viewfeed: enable counters reply, but with rate limit (180 sec) X-Git-Tag: 1.2.23-final~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9e70f3b3ffa3140f5cc1d7154019b831d7c4ca2a;p=tt-rss.git viewfeed: enable counters reply, but with rate limit (180 sec) --- 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);