mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
Fixed cache invalidation after merging
This commit is contained in:
parent
9c656ee90b
commit
2c31df3c58
@ -189,6 +189,7 @@ def merge_artists(target_id,source_ids):
|
|||||||
log(f"Merging {sources} into {target}")
|
log(f"Merging {sources} into {target}")
|
||||||
result = sqldb.merge_artists(target_id,source_ids)
|
result = sqldb.merge_artists(target_id,source_ids)
|
||||||
dbcache.invalidate_entity_cache()
|
dbcache.invalidate_entity_cache()
|
||||||
|
dbcache.invalidate_caches()
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@ -199,6 +200,7 @@ def merge_tracks(target_id,source_ids):
|
|||||||
log(f"Merging {sources} into {target}")
|
log(f"Merging {sources} into {target}")
|
||||||
result = sqldb.merge_tracks(target_id,source_ids)
|
result = sqldb.merge_tracks(target_id,source_ids)
|
||||||
dbcache.invalidate_entity_cache()
|
dbcache.invalidate_entity_cache()
|
||||||
|
dbcache.invalidate_caches()
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user