summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 04ddaadbb..5a72f681f 100644
--- a/functions.php
+++ b/functions.php
@@ -2227,7 +2227,10 @@
/* getting all counters is a resource intensive operation, so we
* rate limit it a little bit */
- if (time() - $_SESSION["get_all_counters_stamp"] > 5) {
+
+
+ if (get_pref($link, "SYNC_COUNTERS") ||
+ time() - $_SESSION["get_all_counters_stamp"] > 5) {
if (!$omode) $omode = "flc";
@@ -3018,6 +3021,9 @@
print "<param key=\"bw_limit\" value=\"".
(int) $_SESSION["bw_limit"]."\"/>";
+ print "<param key=\"sync_counters\" value=\"" .
+ (int) get_pref($link, "SYNC_COUNTERS") . "\"/>";
+
print "</init-params>";
}