From 4d903dcc94bb30e1bddb41e07b080800af587c3c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 26 Apr 2022 17:13:11 -0700 Subject: [PATCH] i18n: Remove size limit on lru_cache for get_language_list. Really just for consistency, since the size will be at most 1 anyway. Signed-off-by: Anders Kaseorg --- zerver/lib/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/i18n.py b/zerver/lib/i18n.py index c24d228108..7198d3ddea 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: