Model
CacheIdCalculator
Magento\GraphQlCache\Model\CacheId\CacheIdCalculator
What it does
This class generates a unique cache identifier (X-Magento-Cache-Id) for GraphQL responses by combining various cache factors (like store, currency, customer group) with a random salt.
Developers use this to enable efficient HTTP caching of GraphQL queries, allowing CDNs and browsers to cache personalized content based on the calculated cache key.
Public Methods
- getCacheId()