diff --git a/arkindex_worker/cache.py b/arkindex_worker/cache.py index b3a7536e6eeacdada14efcd8bb7318cd11a127e2..76e80f1f2148c397fd350699b8f052a4c56d4b7e 100644 --- a/arkindex_worker/cache.py +++ b/arkindex_worker/cache.py @@ -380,7 +380,7 @@ def unsupported_cache(func): def wrapper(self, *args, **kwargs): results = func(self, *args, **kwargs) - if not self.is_read_only and not self.use_cache: + if not (self.is_read_only or self.use_cache): logger.warning( f"This API helper `{func.__name__}` did not update the cache database" )