mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix cache clear
This commit is contained in:
@@ -45,7 +45,7 @@ class DoubanCache(metaclass=WeakSingleton):
|
|||||||
清空所有豆瓣缓存
|
清空所有豆瓣缓存
|
||||||
"""
|
"""
|
||||||
with lock:
|
with lock:
|
||||||
self._cache.clear(region=self.region)
|
self._cache.clear()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __get_key(meta: MetaBase) -> str:
|
def __get_key(meta: MetaBase) -> str:
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class TmdbCache(metaclass=WeakSingleton):
|
|||||||
清空所有TMDB缓存
|
清空所有TMDB缓存
|
||||||
"""
|
"""
|
||||||
with lock:
|
with lock:
|
||||||
self._cache.clear(region=self.region)
|
self._cache.clear()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __get_key(meta: MetaBase) -> str:
|
def __get_key(meta: MetaBase) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user