1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 23:25:56 +00:00

disable SYNC_COUNTERS option

This commit is contained in:
Andrew Dolgov
2009-01-16 16:37:42 +01:00
parent f55b0b12aa
commit bd090ab42e
4 changed files with 14 additions and 12 deletions

View File

@@ -239,11 +239,11 @@
} }
if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) { // if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
print "<counters>"; print "<counters>";
getAllCounters($link, $omode); getAllCounters($link, $omode);
print "</counters>"; print "</counters>";
} // }
print "</reply>"; print "</reply>";
break; // view break; // view
@@ -348,12 +348,12 @@
$viewfeed_ctr_interval = 60; $viewfeed_ctr_interval = 60;
} }
if (get_pref($link, "SYNC_COUNTERS") || // if (get_pref($link, "SYNC_COUNTERS") ||
time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) { // time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
print "<counters>"; print "<counters>";
getAllCounters($link, $omode, $feed); getAllCounters($link, $omode, $feed);
print "</counters>"; print "</counters>";
} // }
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info); if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);

View File

@@ -623,7 +623,7 @@ function request_counters() {
// if (getInitParam("sync_counters") == "1" || // if (getInitParam("sync_counters") == "1" ||
// timestamp - counters_last_request > 10) { // timestamp - counters_last_request > 10) {
if (timestamp - counters_last_request > 5) { if (timestamp - counters_last_request > 10) {
debug("scheduling request of counters..."); debug("scheduling request of counters...");
window.setTimeout("request_counters_real()", 1000); window.setTimeout("request_counters_real()", 1000);
counters_last_request = timestamp; counters_last_request = timestamp;

View File

@@ -2296,8 +2296,8 @@
if (get_pref($link, "SYNC_COUNTERS") || // if (get_pref($link, "SYNC_COUNTERS") ||
time() - $_SESSION["get_all_counters_stamp"] > 5) { // time() - $_SESSION["get_all_counters_stamp"] > 5) {
if (!$omode) $omode = "flc"; if (!$omode) $omode = "flc";
@@ -2313,7 +2313,7 @@
} }
$_SESSION["get_all_counters_stamp"] = time(); $_SESSION["get_all_counters_stamp"] = time();
} // }
} }
@@ -3140,8 +3140,10 @@
print "<param key=\"bw_limit\" value=\"". print "<param key=\"bw_limit\" value=\"".
(int) $_SESSION["bw_limit"]."\"/>"; (int) $_SESSION["bw_limit"]."\"/>";
print "<param key=\"sync_counters\" value=\"" . // print "<param key=\"sync_counters\" value=\"" .
(int) get_pref($link, "SYNC_COUNTERS") . "\"/>"; // (int) get_pref($link, "SYNC_COUNTERS") . "\"/>";
print "<param key=\"sync_counters\" value=\"1\"/>";
print "</init-params>"; print "</init-params>";
} }

View File

@@ -13,7 +13,7 @@
$subop = $_REQUEST["subop"]; $subop = $_REQUEST["subop"];
$prefs_blacklist = array("HIDE_FEEDLIST"); $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS");
if ($subop == "change-password") { if ($subop == "change-password") {