[36] fix cache_builders for different library types

This commit is contained in:
meisnate12 2022-04-25 23:09:42 -04:00
parent e5a6ac99ba
commit 37eeaa085f
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.16.5-develop35
1.16.5-develop36

View file

@ -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