Log in
Model

StateKey

Magento\Catalog\Model\Layer\Category\StateKey

What it does

This class generates unique cache keys for catalog category layers based on store, category, and customer group.

Developers use this to ensure proper cache segmentation when displaying product listings, allowing different cached versions for different stores, categories, and customer groups to maintain accurate pricing and visibility rules.

Public Methods

  • toString()