mirror of https://github.com/CIRCL/lookyloo
fix: Properly re-set the cache if the tree was not built
parent
83969ab8bb
commit
bc5e41a1ca
|
@ -560,7 +560,7 @@ class Lookyloo():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
cached = self.redis.hgetall(str(capture_dir))
|
cached = self.redis.hgetall(str(capture_dir))
|
||||||
if not cached:
|
if not cached or cached.get('incomplete_redirects') == '1':
|
||||||
cached = self._set_capture_cache(capture_dir)
|
cached = self._set_capture_cache(capture_dir)
|
||||||
try:
|
try:
|
||||||
self._captures_index[capture_uuid] = CaptureCache(cached)
|
self._captures_index[capture_uuid] = CaptureCache(cached)
|
||||||
|
|
Loading…
Reference in New Issue