← All modules

Magento 2 module

Page Cache Extended

Lets you keep separate full page cache versions depending on rules for URL parameters, headers, cookies or server values.

Magento’s full page cache stores one version of a page per store view, currency and customer group. Sometimes a store needs more variants, for example when visitors arriving from a certain campaign link or with a certain cookie should see different content. Page Cache Extended lets you define rules that create such additional cache variants without programming.

Features

  • Rules that check a value of the request: a URL parameter, a request header, a cookie, a server variable or an environment variable.
  • Each rule compares the value with a pattern (regular expression). If it matches, a named marker is set and the visitor gets a separate cached version of the pages.
  • Markers can be remembered for the visitor’s following page views (“Collect”), so a campaign parameter in the first URL keeps applying while the visitor browses. Without “Collect”, the marker only applies while the rule matches.
  • Any number of rules.

Configuration

Rules are added under Stores > Configuration > Infrangible Solutions > Page Cache Extended > Settings > Checks (the rules are read from the default configuration scope). Each rule has a Type (Parameter, Header, Cookie, Server or Environment), the Name of the value to check, a Pattern, the FPC Name and FPC Value of the marker to set, and Collect to decide whether the marker is remembered.

Good to know

The module only creates separate cache versions; showing different content to the different groups is up to the theme or other modules. The markers are kept in a cookie in the visitor’s browser. The rules apply to Magento’s built-in full page cache.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-page-cache-extended

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