mirror of https://github.com/CIRCL/lookyloo
chg: properly clear cache when needed
parent
80541f4d35
commit
8b5ce7986b
|
@ -131,6 +131,7 @@ class CapturesIndex(Mapping):
|
||||||
|
|
||||||
def reload_cache(self, uuid: str) -> None:
|
def reload_cache(self, uuid: str) -> None:
|
||||||
if uuid in self.__cache:
|
if uuid in self.__cache:
|
||||||
|
self.redis.hdel(self.__cache[uuid].capture_dir)
|
||||||
del self.__cache[uuid]
|
del self.__cache[uuid]
|
||||||
|
|
||||||
def remove_pickle(self, uuid: str) -> None:
|
def remove_pickle(self, uuid: str) -> None:
|
||||||
|
|
Loading…
Reference in New Issue