mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
i18next: Add expirationTime option to cache.
This ensures that we don't fill up local storage with cached translations data when using a server that restarts often (e.g. a development environment). Fixes: #4443.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
var cacheOptions = {
|
||||
enabled: true,
|
||||
prefix: 'i18next:' + page_params.server_generation + ':',
|
||||
expirationTime: 2*7*24*60*60*1000, // 2 weeks
|
||||
};
|
||||
|
||||
i18n.use(XHR)
|
||||
|
||||
Reference in New Issue
Block a user