From 4b34a093c975cfeeb143a9599211d3efe466681b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 23 Dec 2017 13:38:34 -0500 Subject: [PATCH] Reduce changelog client cache to 1h since as there is also server caching now --- client/js/lounge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 889c44cf..74c38c45 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -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"); }