1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 00:21:28 +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

@@ -2227,7 +2227,10 @@
/* getting all counters is a resource intensive operation, so we
* rate limit it a little bit */
if (time() - $_SESSION["get_all_counters_stamp"] > 5) {
if (get_pref($link, "SYNC_COUNTERS") ||
time() - $_SESSION["get_all_counters_stamp"] > 5) {
if (!$omode) $omode = "flc";
@@ -3018,6 +3021,9 @@
print "<param key=\"bw_limit\" value=\"".
(int) $_SESSION["bw_limit"]."\"/>";
print "<param key=\"sync_counters\" value=\"" .
(int) get_pref($link, "SYNC_COUNTERS") . "\"/>";
print "</init-params>";
}