Model
CustomerSubscriberCache
Magento\Newsletter\Model\CustomerSubscriberCache
What it does
This class provides a caching mechanism for newsletter subscribers indexed by customer ID.
Developers use it to avoid repeated database queries when retrieving the same subscriber information multiple times within a single request.
The cache is automatically cleared after each request through the ResetAfterRequestInterface implementation.
Public Methods
- getCustomerSubscriber()
- setCustomerSubscriber()
- _resetState()