Cache
Magento\Catalog\Model\Product\Image\Cache
What it does
This class manages the generation and caching of product images in various sizes and configurations defined in theme view.xml files.
Developers use this when they need to pre-generate all product image variations (thumbnails, gallery images, etc.) for better performance, typically during product imports or catalog maintenance operations.
It processes each product's media gallery images and creates cached versions according to all registered theme configurations.
Public Methods
- generate()
- _resetState()