1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 05:41:29 +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

@@ -542,7 +542,11 @@ function request_counters() {
var date = new Date();
var timestamp = Math.round(date.getTime() / 1000);
// if (getInitParam("sync_counters") == "1" ||
// timestamp - counters_last_request > 10) {
if (timestamp - counters_last_request > 10) {
debug("scheduling request of counters...");
window.setTimeout("request_counters_real()", 1000);
counters_last_request = timestamp;