From 6794caa32b34d99d79f357b78defa193d2b0abaf Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 18 Oct 2021 14:10:59 -0700 Subject: [PATCH] Call photo._uncache instead of doing it manually. --- frontends/etiquette_flask/backend/endpoints/photo_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py index f41c175..4f555cd 100644 --- a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py @@ -174,7 +174,7 @@ def post_photo_refresh_metadata_core(photo_ids): photos = list(common.P_photos(photo_ids, response_type='json')) for photo in photos: - common.P.caches['photo'].remove(photo.id) + photo._uncache() photo = common.P_photo(photo.id, response_type='json') photo.reload_metadata() if photo.thumbnail is None: