summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend.php8
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);