mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 11:12:15 +00:00
Merge pull request #442 from sharelatex/ho-system-messages-quicker
bring system message checks down to 20 secs
This commit is contained in:
commit
9f5a189025
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ module.exports = SystemMessageManager =
|
|||
clearCache: () ->
|
||||
delete @_cachedMessages
|
||||
|
||||
CACHE_TIMEOUT = 5 * 60 * 1000 # 5 minutes
|
||||
CACHE_TIMEOUT = 20 * 1000 # 20 seconds
|
||||
setInterval () ->
|
||||
SystemMessageManager.clearCache()
|
||||
, CACHE_TIMEOUT
|
||||
, CACHE_TIMEOUT
|
||||
|
|
Loading…
Reference in a new issue