mirror of https://github.com/zulip/zulip.git
1abd00eac2
Before 2018, we used a feature of i18next where we would cache translations in local storage for up to two weeks: var cacheOptions = { // ... prefix: 'i18next:' + page_params.server_generation + ':', expirationTime: 2*7*24*60*60*1000, // 2 weeks }; i18next.init({ /// ... cache: cacheOptions } Because `server_generation` would change each time you upgraded a server, a frequently upgraded server like chat.zulip.org would cause its active users to start to accumulate lots of obsolete key/value pairs in local storage over the two weeks. See #4443 for more details. We eventually reduced the cache life to 2 days. And then on top of that, newer versions of the server would start to clean up after themselves using this commit from April 2017: |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.eslintrc.json | ||
.gitignore | ||
favicon.ico |