From 37eeaa085ff3d9e825eb54226f9f558718018dcc Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 25 Apr 2022 23:09:42 -0400 Subject: [PATCH] [36] fix cache_builders for different library types --- VERSION | 2 +- modules/builder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 89a6939c..89eb5fe1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop35 +1.16.5-develop36 diff --git a/modules/builder.py b/modules/builder.py index 0b5183c2..aebf886c 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1477,7 +1477,7 @@ class CollectionBuilder: expired = None list_key = None if self.config.Cache and self.details["cache_builders"]: - list_key, expired = self.config.Cache.query_list_cache(method, str(value), self.details["cache_builders"]) + list_key, expired = self.config.Cache.query_list_cache(f"{self.library.type}:{method}", str(value), self.details["cache_builders"]) if list_key and expired is False: logger.info(f"Builder: {method} loaded from Cache") return self.config.Cache.query_list_ids(list_key) @@ -1518,7 +1518,7 @@ class CollectionBuilder: if self.config.Cache and self.details["cache_builders"] and ids: if list_key: self.config.Cache.delete_list_ids(list_key) - list_key = self.config.Cache.update_list_cache(method, str(value), expired, self.details["cache_builders"]) + list_key = self.config.Cache.update_list_cache(f"{self.library.type}:{method}", str(value), expired, self.details["cache_builders"]) self.config.Cache.update_list_ids(list_key, ids) return ids