Log in
Model

DepersonalizePlugin

Magento\Persistent\Model\Layout\DepersonalizePlugin

What it does

This plugin clears persistent customer session data when page depersonalization is required, typically for full-page cache scenarios.

It ensures that cached pages don't accidentally display personalized customer information to the wrong users by removing the customer ID from the persistent session when depersonalization conditions are met.

Public Methods

  • afterGenerateElements()