Log in
Model

DepersonalizePlugin

Magento\PageCache\Model\Layout\DepersonalizePlugin

What it does

This plugin clears sensitive customer data from the session after page layout generation when serving cached pages.

It ensures personalized information like customer messages and session data are removed before caching the page, preventing one customer's data from being shown to another.

Developers typically don't interact with this directly as it's part of Magento's Full Page Cache mechanism.

Public Methods

  • afterGenerateElements()