From 87eae72f51da3ab67e2fdc10ea0e560c1143de5c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 31 Oct 2023 07:08:28 +0800 Subject: [PATCH] fix #1024 --- app/utils/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/utils/common.py b/app/utils/common.py index 1fb536aa..f238cba9 100644 --- a/app/utils/common.py +++ b/app/utils/common.py @@ -49,6 +49,10 @@ def lru_cache_without_none(maxsize=None, typed=False): if result is not None: return result + def cache_clear(): + cache.cache_clear() + + wrapper.cache_clear = cache_clear return wrapper return decorator