From fd9056973a07eea56568209c68bbccccbd74e534 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 19 Sep 2016 10:12:27 +1000 Subject: [PATCH] FEATURE: increase interval to 24 hours for "please refresh site" Used to be 2 hours, which is a bit tight, especially for people who leave computer running overnight. Keep in mind we always refresh on route change, so clicking on a topic will trigger a refresh --- .../javascripts/discourse/initializers/asset-version.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/initializers/asset-version.js.es6 b/app/assets/javascripts/discourse/initializers/asset-version.js.es6 index 6f3b3686d..602755937 100644 --- a/app/assets/javascripts/discourse/initializers/asset-version.js.es6 +++ b/app/assets/javascripts/discourse/initializers/asset-version.js.es6 @@ -12,13 +12,13 @@ export default { Discourse.set("assetVersion", version); if (!timeoutIsSet && Discourse.get("requiresRefresh")) { - // since we can do this transparently for people browsing the forum - // hold back the message a couple of hours + // Since we can do this transparently for people browsing the forum + // hold back the message 24 hours. setTimeout(function () { bootbox.confirm(I18n.lookup("assets_changed_confirm"), function (result) { if (result) { document.location.reload(); } }); - }, 1000 * 60 * 120); + }, 1000 * 60 * 24 * 60); timeoutIsSet = true; }