RemoveDeletedImagesFromCache
Magento\Catalog\Model\Product\Image\RemoveDeletedImagesFromCache
What it does
This class removes deleted product images from Magento's image cache directories.
When product images are deleted from the catalog, this service cleans up all cached versions of those images across different image configurations (thumbnails, product pages, etc.).
Developers would use this during product image deletion operations to prevent orphaned cached images from consuming disk space.
Public Methods
- removeDeletedImagesFromCache()