← All modules

Magento 2 module

Catalog Product Image Cache Clean

Adds a "Clean Image Cache" button to the product edit page that removes the resized cached images of this product, so updated images appear right away.

Magento creates resized copies of every product image for listings, product pages and thumbnails and keeps them in an image cache. If an image file is replaced under the same name, the store keeps showing the old resized copies. Removing them usually means flushing the image cache of the whole catalog, which then has to be regenerated. Catalog Product Image Cache Clean lets you remove the cached images of a single product.

Features

  • A Clean Image Cache button on the product edit page removes all resized copies of this product’s images.
  • The images are created again from the original files the next time they are displayed.
  • Other modules and import routines can use the same function to clean the image cache of the products whose images they changed.

Configuration

There is nothing to configure. The button is available right after installation.

Good to know

Only the image cache is cleaned. If the product pages are also kept in the full page cache, refresh them as well, for example with “Page Cache Clean”.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-catalog-product-image-cache-clean

Then enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.