chg: properly clear cache when needed

pull/478/head
Raphaël Vinot 2022-07-29 19:02:06 +02:00
parent 80541f4d35
commit 8b5ce7986b
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class CapturesIndex(Mapping):
def reload_cache(self, uuid: str) -> None:
if uuid in self.__cache:
self.redis.hdel(self.__cache[uuid].capture_dir)
del self.__cache[uuid]
def remove_pickle(self, uuid: str) -> None: