Model
Cache
Magento\Catalog\Model\Product\Image\Cache
What it does
This class is responsible for pre-generating and caching product image variations (thumbnails, different sizes) based on theme configurations defined in view.xml files.
Developers use this when they need to warm up the image cache, typically during product imports or catalog updates, to ensure all required image sizes are ready before customers view product pages.
Public Methods
- generate()
- _resetState()