feat 清理缓存时清理种子缓存

This commit is contained in:
jxxghp
2023-11-20 10:56:28 +08:00
parent a7752ceb17
commit 4c230b4c1e
5 changed files with 24 additions and 2 deletions

View File

@ -705,8 +705,10 @@ class DoubanModule(_ModuleBase):
"""
清除缓存
"""
logger.info("开始清除豆瓣缓存 ...")
self.doubanapi.clear_cache()
self.cache.clear()
logger.info("豆瓣缓存清除完成")
def douban_movie_credits(self, doubanid: str, page: int = 1, count: int = 20) -> List[dict]:
"""

View File

@ -447,5 +447,7 @@ class TheMovieDbModule(_ModuleBase):
"""
清除缓存
"""
logger.info("开始清除TMDB缓存 ...")
self.tmdb.clear_cache()
self.cache.clear()
logger.info("TMDB缓存清除完成")