Reduce changelog client cache to 1h since as there is also server caching now
This commit is contained in:
parent
57c24704af
commit
4b34a093c9
@ -427,8 +427,8 @@ $(function() {
|
||||
|
||||
if (target === "#help" || target === "#changelog") {
|
||||
const now = Date.now();
|
||||
// Don't check more than once a day
|
||||
if (now - changelogRequestedAt > 86400 * 1000) {
|
||||
// Don't check more than once an hour
|
||||
if (now - changelogRequestedAt > 3600 * 1000) {
|
||||
changelogRequestedAt = now;
|
||||
socket.emit("changelog");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user