From bd090ab42e4856fd7839ae9f6a07e8c4a23c8c81 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 16 Jan 2009 16:37:42 +0100 Subject: [PATCH] disable SYNC_COUNTERS option --- backend.php | 10 +++++----- feedlist.js | 2 +- functions.php | 12 +++++++----- modules/pref-prefs.php | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/backend.php b/backend.php index 71a95225..0c8929f5 100644 --- a/backend.php +++ b/backend.php @@ -239,11 +239,11 @@ } - if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) { +// if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) { print ""; getAllCounters($link, $omode); print ""; - } +// } print ""; break; // view @@ -348,12 +348,12 @@ $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 ""; getAllCounters($link, $omode, $feed); print ""; - } +// } if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info); diff --git a/feedlist.js b/feedlist.js index d4adacb6..2b5b4f8d 100644 --- a/feedlist.js +++ b/feedlist.js @@ -623,7 +623,7 @@ function request_counters() { // 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; diff --git a/functions.php b/functions.php index 53ad3ce7..239e74e6 100644 --- a/functions.php +++ b/functions.php @@ -2296,8 +2296,8 @@ - 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"; @@ -2313,7 +2313,7 @@ } $_SESSION["get_all_counters_stamp"] = time(); - } +// } } @@ -3140,8 +3140,10 @@ print ""; - print ""; +// print ""; + + print ""; print ""; } diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 0add856d..0889eb7e 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -13,7 +13,7 @@ $subop = $_REQUEST["subop"]; - $prefs_blacklist = array("HIDE_FEEDLIST"); + $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS"); if ($subop == "change-password") { -- 2.39.5