diff --git a/arkindex_worker/worker/base.py b/arkindex_worker/worker/base.py index 2bc880e6e36402f5a8d692ef887d9c382b3be0c6..2f684ff30d3985503397e32409c24eb7d8c2556e 100644 --- a/arkindex_worker/worker/base.py +++ b/arkindex_worker/worker/base.py @@ -167,13 +167,13 @@ class BaseWorker(object): init_cache_db(self.cache_path) create_tables() + + # Merging parents caches (if there are any) in the current task local cache, unless the database got overridden + if self.args.database is None and paths is not None: + merge_parents_cache(paths, self.cache_path) else: logger.debug("Cache is disabled") - # Merging parents caches (if there are any) in the current task local cache, unless the database got overridden - if self.use_cache and self.args.database is None and paths is not None: - merge_parents_cache(paths, self.cache_path) - def load_secret(self, name): """Load all secrets described in the worker configuration""" secret = None