update_element_lookup_cache on forced single update

master
Felix Stupp 1 year ago
parent eaa2bcbfe2
commit 059111068a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -833,7 +833,9 @@ def force_refresh_collection(collection_id: int) -> ResponseReturnValue:
coll: MediaCollection = MediaCollection.get(id=collection_id)
if coll is None:
return "404 Not Found", 404
collection_update(coll, check_cache_expired=False)
state = collection_update(coll, check_cache_expired=False)
if state.may_has_changed:
update_element_lookup_cache((coll.id,))
return redirect_back_or_okay()

Loading…
Cancel
Save