Log in
Model

Context

Magento\Customer\Model\Context

What it does

This class defines constants used for managing customer-related cache contexts in Magento 2.

Developers use these constants when implementing cache variations based on customer group or login status, ensuring that cached content is properly segmented for different customer states.

It's primarily used in full page cache (FPC) implementations to vary cached pages based on whether a customer is logged in or belongs to a specific customer group.