Model
CacheableQuery
Magento\GraphQlCache\Model\CacheableQuery
What it does
This class manages GraphQL query caching by collecting cache tags from entities involved in queries and tracking whether the response is cacheable.
Developers use this singleton to add cache tags for entities accessed during GraphQL operations and determine if the response should be cached with Full Page Cache, enabling efficient cache invalidation when those entities change.
Public Methods
- getCacheTags()
- addCacheTags()
- isCacheable()
- setCacheValidity()
- shouldPopulateCacheHeadersWithTags()
- _resetState()