This commit is contained in:
Aevann1 2021-10-10 05:54:23 +02:00
parent a5e3c55afd
commit 0befcc29b8
4 changed files with 14 additions and 12 deletions

View file

@ -16,7 +16,7 @@ if (typeof showNewCommentCounts === 'undefined') {
const LAST_CACHE_CLEAN_ID = "last-cache-clean"
const EXPIRE_INTERVAL_MILLIS = 5 * 24 * 60 * 60 * 1000
const CACHE_CLEAN_INTERVAL = 60 * 60 * 1000 // 1 hour
const CACHE_CLEAN_INTERVAL = 60 * 60 * 1000
function cleanCache() {
const lastCacheClean = JSON.parse(localStorage.getItem(LAST_CACHE_CLEAN_ID)) || Date.now()