From: Marcel van der Veldt Date: Fri, 17 Oct 2025 22:52:23 +0000 (+0200) Subject: Fix typo in use_cache decorator X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=38fbffa561144dfb7dbb6998206f90a699cc3d82;p=music-assistant-server.git Fix typo in use_cache decorator --- diff --git a/music_assistant/controllers/cache.py b/music_assistant/controllers/cache.py index 9171d80c..f7b4d02d 100644 --- a/music_assistant/controllers/cache.py +++ b/music_assistant/controllers/cache.py @@ -385,7 +385,7 @@ def use_cache( @functools.wraps(func) async def wrapper(self: ProviderT, *args: P.args, **kwargs: P.kwargs) -> R: cache = self.mass.cache - provider_id = getattr(self, "provider_id", self.domain) + provider_id = getattr(self, "instance_id", self.domain) # create a cache key dynamically based on the (remaining) args/kwargs cache_key_parts = [func.__name__, *args]