DepersonalizePlugin
Magento\Customer\Model\Layout\DepersonalizePlugin
What it does
This plugin clears sensitive customer session data (like customer group ID and form keys) when serving cached pages to ensure personalized information isn't accidentally shown to other users.
Magento uses this during Full Page Cache operations to prevent one customer from seeing another customer's data.
Developers typically don't interact with this class directly as it's part of Magento's automatic cache depersonalization process.
Public Methods
- beforeGenerateXml()
- afterGenerateElements()