From 1fb791455e93738cd8e197b8095a646f5ab0e3e9 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Sun, 22 Dec 2024 01:37:25 +0800 Subject: [PATCH] chore(recommend): update comment --- app/chain/recommend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chain/recommend.py b/app/chain/recommend.py index 48d66f81..3783ca45 100644 --- a/app/chain/recommend.py +++ b/app/chain/recommend.py @@ -18,7 +18,7 @@ recommend_ttl = 6 * 3600 recommend_cache = TTLCache(maxsize=256, ttl=recommend_ttl) -# 推荐缓存装饰器,避免偶发网络获取数据为空时,页面由于缓存长时间渲染异常问题 +# 推荐缓存装饰器,避免偶发网络获取数据为空时,页面由于缓存为空长时间渲染异常问题 def cached_with_empty_check(func: Callable): """ 缓存装饰器,用于缓存函数的返回结果,仅在结果非空时进行缓存