Description
Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8
8.13.0
Bug summary
When a media image, that was used with crop-function before, will be deleted in the media section, the cached version of the crop (created by the image processor) still stays available on the server for a longer period of time (i guess standard-time will be 365 days as written in the cache.config of the image processor).
Specifics
We had a problem with a copyright-protected image. Our client got served noticed to remove the image and had to pay a fine. Some month later, our client got served noticed for the exact same image we already removed. The problem was, that it was still in the cache of the image processor and could be called by a crop-URL. And now, I just checked it again.
I deleted a pic - accessible before under this url: https://www.hotel-buergerstuben.de/media/vkrdue2c/steak.jpg
As you can see - it is removed. But if I add a used crop URL, you still can call the image: https://www.hotel-buergerstuben.de/media/vkrdue2c/steak.jpg?anchor=center&mode=crop&width=1280&height=700&rnd=132692703894230000
I think this is not really as it should work - and I don't want to clear the complete cache-folder just to get rid of one single image.
Steps to reproduce
- Upload an image
- create a crop
- call the crop of the image on a page/template
- remember the url of the origin image an the crop-image
- delete the image in the media file
- origin url will run into 404 - the crop-path is still available and shows the deleted image
Expected result / actual result
When an image is deleted, all umbraco-based cache-relations should be cleared too.