mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 01:36:57 +08:00
perf: User delete api
This commit is contained in:
@@ -168,9 +168,9 @@ def clear_cache(
|
||||
)
|
||||
|
||||
logger.debug(f"Clearing cache for key: {cache_key}")
|
||||
|
||||
# 2. 清除缓存
|
||||
await FastAPICache.clear(key=cache_key)
|
||||
if await FastAPICache.get_backend().get(cache_key):
|
||||
await FastAPICache.clear(key=cache_key)
|
||||
|
||||
# 3. 执行原函数
|
||||
return await func(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user