summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index a73e54078..cc5fd46c6 100644
--- a/backend.php
+++ b/backend.php
@@ -214,7 +214,8 @@
}
}
- if ($mode == "prefetch" && $csync) {
+
+ if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
@@ -299,7 +300,8 @@
$viewfeed_ctr_interval = 60;
}
- if (time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
+ if (get_pref($link, "SYNC_COUNTERS") ||
+ time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
print "<counters>";
getAllCounters($link, $omode, $feed);
print "</counters>";