diff options
author | Andrew Dolgov <[email protected]> | 2008-07-23 04:55:35 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-07-23 04:55:35 +0100 |
commit | d234a2e39d18e685f3ed76ceca2f30f3bfa0eb18 (patch) | |
tree | de3722a1e0aea66f1d2bf5a892ca6ec12a822e00 /backend.php | |
parent | 3e6623a99acbabf4250001e9a81263c5dc5f12af (diff) |
new option: SYNC_COUNTERS (bump schema)
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend.php b/backend.php index a73e54078..cc5fd46c6 100644 --- a/backend.php +++ b/backend.php @@ -214,7 +214,8 @@ } } - if ($mode == "prefetch" && $csync) { + + if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) { print "<counters>"; getAllCounters($link, $omode); print "</counters>"; @@ -299,7 +300,8 @@ $viewfeed_ctr_interval = 60; } - if (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>"; |