]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable SYNC_COUNTERS option
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 15:37:42 +0000 (16:37 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 15:37:42 +0000 (16:37 +0100)
backend.php
feedlist.js
functions.php
modules/pref-prefs.php

index 71a9522583bcc803d83f39d1dc34d2897e24c4af..0c8929f57b2846be3c3de3346c4f0e282aa828dd 100644 (file)
                        }
 
 
-                       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);
 
index d4adacb66002c266e40d3673b860acea6dd5bbfa..2b5b4f8d3eb781208a528b550af8d0b3aff09424 100644 (file)
@@ -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;
index 53ad3ce709b4ab04da55f94e7839d91b03d1744a..239e74e6c2c7f5bed31d2c2347167603f11321d9 100644 (file)
 
 
 
-               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>";
        }
index 0add856db7b74ffe5a1fcb2fea8917df83d0dcc5..0889eb7e2d8d3461c1d3ba338e5c41a472fa9305 100644 (file)
@@ -13,7 +13,7 @@
 
                $subop = $_REQUEST["subop"];
 
-               $prefs_blacklist = array("HIDE_FEEDLIST");
+               $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS");
 
                if ($subop == "change-password") {