summaryrefslogtreecommitdiff
path: root/server/szurubooru/search/executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/search/executor.py')
-rw-r--r--server/szurubooru/search/executor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/szurubooru/search/executor.py b/server/szurubooru/search/executor.py
index 5302b14..bf95cc0 100644
--- a/server/szurubooru/search/executor.py
+++ b/server/szurubooru/search/executor.py
@@ -95,7 +95,10 @@ class Executor:
if token.name == "random":
disable_eager_loads = True
- key = (id(self.config), hash(search_query), offset, limit)
+
+ can_list_unsafe = getattr(self.config, "can_list_unsafe", False)
+
+ key = (id(self.config), hash(search_query), offset, limit, can_list_unsafe)
if not disable_eager_loads and cache.has(key):
return cache.get(key)