Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

i18n: Remove size limit on lru_cache for get_language_list.

Anders Kaseorg4d903dcc94bb
diff --git a/zerver/lib/i18n.py b/zerver/lib/i18n.py
index c24d2281084..7198d3ddea5 100644
--- a/zerver/lib/i18n.py
+++ b/zerver/lib/i18n.py
@@ -13,7 +13,7 @@ from django.utils import translation
from zerver.lib.request import RequestNotes
-@lru_cache()
+@lru_cache(None)
def get_language_list() -> List[Dict[str, Any]]:
path = os.path.join(settings.DEPLOY_ROOT, "locale", "language_name_map.json")
with open(path, "rb") as reader: