mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[36] fix cache_builders for different library types
This commit is contained in:
parent
e5a6ac99ba
commit
37eeaa085f
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.16.5-develop35
|
||||
1.16.5-develop36
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue