Closed PubliAlex closed 1 year ago
Thank you for this addition. This could delete more than just the thumbs generated by the plugin, but since it only looks at the storage/temp folder I guess this is a safe way to go since all files in there are onyl temporary by design.
@tobias-kuendig Yes, I thought about that and I had the same conclusion, if the clear image widget finally clear all images, not only the ones generated by the responsive resize, it's pretty good, nobody want to have several clear images widget depending on the module that generate them.
Hello,
I noticed during some tests that the clear image widget don't correctly clear all temporary images.
It was because the commande looked at images prefixed with thumb_, don't know if it changed recently with the latest version of october, but images generated with responsive images are not prefixed like that.
To provide a more robust solution, this change look at the image extension responsive image parse (by reading settings) and delete all files that have that extension.