}
- if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
+// if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
- }
+// }
print "</reply>";
break; // view
$viewfeed_ctr_interval = 60;
}
- if (get_pref($link, "SYNC_COUNTERS") ||
- 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>";
- }
+// }
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);
// if (getInitParam("sync_counters") == "1" ||
// timestamp - counters_last_request > 10) {
- if (timestamp - counters_last_request > 5) {
+ if (timestamp - counters_last_request > 10) {
debug("scheduling request of counters...");
window.setTimeout("request_counters_real()", 1000);
counters_last_request = timestamp;
- if (get_pref($link, "SYNC_COUNTERS") ||
- time() - $_SESSION["get_all_counters_stamp"] > 5) {
+// if (get_pref($link, "SYNC_COUNTERS") ||
+// time() - $_SESSION["get_all_counters_stamp"] > 5) {
if (!$omode) $omode = "flc";
}
$_SESSION["get_all_counters_stamp"] = time();
- }
+// }
}
print "<param key=\"bw_limit\" value=\"".
(int) $_SESSION["bw_limit"]."\"/>";
- print "<param key=\"sync_counters\" value=\"" .
- (int) get_pref($link, "SYNC_COUNTERS") . "\"/>";
+// print "<param key=\"sync_counters\" value=\"" .
+// (int) get_pref($link, "SYNC_COUNTERS") . "\"/>";
+
+ print "<param key=\"sync_counters\" value=\"1\"/>";
print "</init-params>";
}
$subop = $_REQUEST["subop"];
- $prefs_blacklist = array("HIDE_FEEDLIST");
+ $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS");
if ($subop == "change-password") {