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 <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-04-26 17:13:11 -07:00 committed by Tim Abbott
parent 0451d1e47f
commit 4d903dcc94
1 changed files with 1 additions and 1 deletions

View File

@ -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: