From 0a074128779802c186a1417ced69e3da8d345d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 18 Aug 2022 12:07:15 +0200 Subject: [PATCH] fix: Make sure the view is consistent across gunicorn processes --- lookyloo/lookyloo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 67781e9..50a228f 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -324,8 +324,9 @@ class Lookyloo(): '''Get all the captures in the cache, sorted by timestamp (new -> old). By default, this method will only return the captures that are currently cached.''' if capture_uuids is None: - # Sort all recent captures + # Call from the index, we want all the recent captures capture_uuids = self.redis.hkeys('lookup_dirs') + cached_captures_only = False if not capture_uuids: # No captures at all on the instance return []