From 499bdf9b482971572387d52b8cb7b229a0e7f14a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 22 Aug 2025 07:22:23 +0800 Subject: [PATCH] fix cache clear --- app/modules/douban/douban_cache.py | 2 +- app/modules/themoviedb/tmdb_cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/douban/douban_cache.py b/app/modules/douban/douban_cache.py index d201bddc..52a3cb4f 100644 --- a/app/modules/douban/douban_cache.py +++ b/app/modules/douban/douban_cache.py @@ -45,7 +45,7 @@ class DoubanCache(metaclass=WeakSingleton): 清空所有豆瓣缓存 """ with lock: - self._cache.clear(region=self.region) + self._cache.clear() @staticmethod def __get_key(meta: MetaBase) -> str: diff --git a/app/modules/themoviedb/tmdb_cache.py b/app/modules/themoviedb/tmdb_cache.py index 14bf1959..d753ced7 100644 --- a/app/modules/themoviedb/tmdb_cache.py +++ b/app/modules/themoviedb/tmdb_cache.py @@ -43,7 +43,7 @@ class TmdbCache(metaclass=WeakSingleton): 清空所有TMDB缓存 """ with lock: - self._cache.clear(region=self.region) + self._cache.clear() @staticmethod def __get_key(meta: MetaBase) -> str: