Model
ManagePrivateContent
Magento\Store\Model\StoreSwitcher\ManagePrivateContent
What it does
This class manages private content versioning during store switching in Magento 2.
When a customer switches between stores (e.g., from US to UK store), it updates a cookie to force browser local storage to refresh, ensuring customer-specific cached content like cart items and wishlists are properly synchronized with the new store context.
Public Methods
- switch()