← All modules

Magento 2 module

Page Cache Vary Fix

Fixes the built-in full page cache of Magento 2.4.8, which shows logged-in customers the cached pages of guests, for example with Create an Account or guest prices.

Also known as: logged in customer sees guest page, full page cache shows guest prices after login, Magento 2.4.8 FPC customer group price

In Magento 2.4.8 the built-in full page cache has a bug: after logging in, customers are shown the cached pages of guests. The header still offers “Sign In” and “Create an Account”, and products show the guest prices instead of the prices of the customer’s group, until a page is opened that is not cached, such as the customer account. This module fixes it.

Features

  • Logged-in customers get the pages of their own context again: their name in the header and the prices of their customer group.
  • Guests keep getting their cached pages; the cache keeps working for everybody.
  • Nothing to configure: install it, flush the page cache, done.

Configuration

There are no settings. After the installation, flush the full page cache once (System > Cache Management or bin/magento cache:flush full_page).

Good to know

Only shops with Magento 2.4.8 (including its patch releases) and the built-in full page cache are affected. Shops with Varnish or Fastly are not, Magento 2.4.9 contains the fix itself, and the module cannot be installed on other versions. When upgrading to 2.4.9, remove the module.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-page-cache-vary-fix

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