Call photo._uncache instead of doing it manually.
This commit is contained in:
		
							parent
							
								
									7b7c74b15d
								
							
						
					
					
						commit
						6794caa32b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue