Call photo._uncache instead of doing it manually.

This commit is contained in:
voussoir 2021-10-18 14:10:59 -07:00
parent 7b7c74b15d
commit 6794caa32b
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -174,7 +174,7 @@ def post_photo_refresh_metadata_core(photo_ids):
photos = list(common.P_photos(photo_ids, response_type='json')) photos = list(common.P_photos(photo_ids, response_type='json'))
for photo in photos: for photo in photos:
common.P.caches['photo'].remove(photo.id) photo._uncache()
photo = common.P_photo(photo.id, response_type='json') photo = common.P_photo(photo.id, response_type='json')
photo.reload_metadata() photo.reload_metadata()
if photo.thumbnail is None: if photo.thumbnail is None: