Merge pull request #442 from sharelatex/ho-system-messages-quicker

bring system message checks down to 20 secs
This commit is contained in:
Brian Gough 2017-03-02 14:04:14 +00:00 committed by GitHub
commit 9f5a189025

View file

@ -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