Search by

infrangible / m2-page-cache-url-clean

infrangible

Adds a field to the Cache Management page to remove a single URL from the full page cache, without flushing the whole cache.

Package info

github.com/infrangible-dev/m2-page-cache-url-clean

Homepage

Type:magento2-module

pkg:composer/infrangible/m2-page-cache-url-clean

Statistics

Installs: 140

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

3.0.0 2026-11-28 11:41 UTC

This package is auto-updated.

Last update: 2026-11-28 11:43:30 UTC


README

Removes single pages from Magento's built-in full page cache, by their URL, instead of flushing the whole cache.

Usage

The page System > Tools > Cache Management gets the form Page Cache Url Clean. Enter the URL of a page as it is opened in the store, for example https://www.example.com/joust-duffle-bag.html, and click Clean url. The next request of the URL renders the page again. Spaces before and after the URL are ignored.

The URL has to match exactly, with protocol, domain and query: https://www.example.com/joust-duffle-bag.html?color=red is a page of its own in the cache and is cleaned with this URL.

The form is shown to admin users with the permission System > Tools > Cache Management > Page Cache Clean Url.

Behavior

  • With the built-in full page cache enabled, the module adds a tag with the URL (its SHA-1 hash) to the cache tags of every page of the store; cleaning removes the pages with this tag.
  • With Varnish, the module does nothing; the form has no effect there.
  • There are no settings.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.6 or newer
  • PHP 8.1 or newer

Installation

composer require infrangible/m2-page-cache-url-clean
bin/magento module:enable Infrangible_PageCacheUrlClean
bin/magento setup:upgrade

In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.

License

Infrangible Page Cache Url Clean is licensed under the MIT License - see the LICENSE file for details.