Reduce changelog client cache to 1h since as there is also server caching now

This commit is contained in:
Jérémie Astori 2017-12-23 13:38:34 -05:00
parent 57c24704af
commit 4b34a093c9
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8

View file

@ -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");
}