Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
SLING-9655 added support for GraphQL persisted queries. However, the current implementation still returns a query's cache and allows a client to perform cache retrievals even if the query was not actually stored in the cache.
This happens due to the LRU cache implemented by org.apache.sling.graphql.core.cache.SimpleGraphQLCacheProvider, which evicts the oldest entry without checking if the new entry can actually be stored when using a cache memory limit configuration.