Prevent caching when searching random

This commit is contained in:
Hunternif 2019-04-07 19:44:27 +07:00
parent 68bd168434
commit a62a175768

View file

@ -94,7 +94,7 @@ class Executor:
disable_eager_loads = True disable_eager_loads = True
key = (id(self.config), hash(search_query), offset, limit) key = (id(self.config), hash(search_query), offset, limit)
if cache.has(key): if not disable_eager_loads and cache.has(key):
return cache.get(key) return cache.get(key)
filter_query = self.config.create_filter_query(disable_eager_loads) filter_query = self.config.create_filter_query(disable_eager_loads)