1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:45:55 +00:00

new option: SYNC_COUNTERS (bump schema)

This commit is contained in:
Andrew Dolgov
2008-07-23 04:55:35 +01:00
parent 3e6623a99a
commit d234a2e39d
9 changed files with 29 additions and 6 deletions

View File

@@ -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>";