From 015b779ca91ceeb898280608e49586d2092947ea Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 30 Mar 2023 21:22:29 +0200 Subject: [PATCH] Fixed caching issue when changing album info of track --- maloja/database/__init__.py | 1 + maloja/server.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/maloja/database/__init__.py b/maloja/database/__init__.py index 29fa956..48fb708 100644 --- a/maloja/database/__init__.py +++ b/maloja/database/__init__.py @@ -110,6 +110,7 @@ def incoming_scrobble(rawscrobble,fix=True,client=None,api=None,dbconn=None): proxy_scrobble_all(scrobbledict['track']['artists'],scrobbledict['track']['title'],scrobbledict['time']) dbcache.invalidate_caches(scrobbledict['time']) + dbcache.invalidate_entity_cache() # because album info might have changed #return {"status":"success","scrobble":scrobbledict} return scrobbledict diff --git a/maloja/server.py b/maloja/server.py index 7e3815e..6f76524 100644 --- a/maloja/server.py +++ b/maloja/server.py @@ -220,8 +220,8 @@ def jinja_page(name): res = template.render(**loc_context) except TemplateNotFound: abort(404,f"Not found: '{name}'") - except (ValueError, IndexError): - abort(404,"This Artist or Track does not exist") + #except (ValueError, IndexError): + # abort(404,"This Artist or Track does not exist") if malojaconfig["DEV_MODE"]: jinja_environment.cache.clear()