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:
@@ -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>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user