summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-17 16:01:09 +0100
committerAndrew Dolgov <[email protected]>2009-01-17 16:01:09 +0100
commita06d0e5a8b92a2015a05b376eb6b8f4a9878c4e0 (patch)
tree2ca75170477ed9a7c0b1a3397d9756d726e4d7a7 /backend.php
parent00fceabf61a67abdd4a119f562f013f8ed6b022b (diff)
rpc tweaks; viewfeed counters attachment changed
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/backend.php b/backend.php
index d26461b4f..67f254a19 100644
--- a/backend.php
+++ b/backend.php
@@ -337,11 +337,6 @@
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
- $viewfeed_ctr_interval = 300;
-
- if ($csync || $_SESSION["bw_limit"]) {
- $viewfeed_ctr_interval = 60;
- }
// if (get_pref($link, "SYNC_COUNTERS") ||
// time() - $_SESSION["get_all_counters_stamp"] > $viewfeed_ctr_interval) {
@@ -350,11 +345,13 @@
// print "</counters>";
// }
- if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) {
+ if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop ||
+ time() - $_SESSION["viewfeed:counters_stamp"] > 30) {
if (!$offset) {
print "<counters>";
getAllCounters($link, $omode, $feed);
print "</counters>";
+ $_SESSION["viewfeed:counters_stamp"] = time();
}
}