Update SystemMessageManager.coffee

This commit is contained in:
Henry Oswald 2017-03-01 15:46:43 +00:00 committed by GitHub
parent 1a9c035647
commit 8db684bd2d

View file

@ -23,7 +23,7 @@ module.exports = SystemMessageManager =
clearCache: () ->
delete @_cachedMessages
CACHE_TIMEOUT = 1 * 60 * 1000 # 1 minutes
CACHE_TIMEOUT = 20 * 1000 # 20 seconds
setInterval () ->
SystemMessageManager.clearCache()
, CACHE_TIMEOUT
, CACHE_TIMEOUT