rate limit counters calculation in view to once per 10 sec
This commit is contained in:
parent
014accd1fd
commit
3c204a8e23
1 changed files with 4 additions and 2 deletions
|
@ -238,12 +238,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
|
||||
|
||||
if (time() - $_SESSION["view:counters_stamp"] > 10) {
|
||||
print "<counters>";
|
||||
getAllCounters($link, $omode);
|
||||
print "</counters>";
|
||||
// }
|
||||
$_SESSION["view:counters_stamp"] = time();
|
||||
}
|
||||
|
||||
print "</reply>";
|
||||
break; // view
|
||||
|
|
Loading…
Reference in a new issue