When a product or category page shows outdated content, the usual remedy is to flush the whole full page cache, which makes the entire store slow until the cache is warm again. Page Cache Clean lets you refresh only the pages that belong to one product or one category.
Features
- A Clean Page Cache button on the product edit page removes the cached pages of this product.
- A Clean Page Cache button on the category edit page removes the cached pages of this category, including the cached product listings of the category.
- When you are editing a specific store view, only the cached pages of that store view are cleaned; otherwise those of all store views.
- Works with Magento’s built-in full page cache and with Varnish.
- Other modules and import routines can use the same function to clean the cached pages of the products and categories they changed.
Configuration
There is nothing to configure. The buttons are available right after installation.
Good to know
To make cleaning per store view possible, the module additionally marks product and category pages with their store view when they are cached. Cleaning for a single store view therefore covers pages that were cached after the installation.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-page-cache-cleanThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.