From 16cb7d308361b063e34802affbb3ac8ed8296684 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Oct 2024 21:02:41 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tts/types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tts/types.py b/src/calibre/gui2/tts/types.py index 547d4fef67..3f78220608 100644 --- a/src/calibre/gui2/tts/types.py +++ b/src/calibre/gui2/tts/types.py @@ -16,7 +16,9 @@ from calibre.utils.localization import canonicalize_lang CONFIG_NAME = 'tts' TTS_EMBEDED_CONFIG = 'tts-embedded' -conf_cache = {} # for some reason LRU cache doesn't work for this +# lru_cache doesn't work for this because it returns different results for +# load_config() and load_config(CONFIG_NAME) +conf_cache = {} def load_config(config_name=CONFIG_NAME) -> JSONConfig: