Model
ContextPlugin
Magento\Customer\Model\App\Action\ContextPlugin
What it does
This plugin intercepts every action in Magento 2 to set customer-specific context data (customer group ID and authentication status) into the HTTP context.
This allows the full page cache to vary cached pages based on whether a customer is logged in and their customer group, ensuring personalized content is displayed correctly while maintaining cache efficiency.
Public Methods
- beforeExecute()