As of this writing resolvers are not cached!
As stated in other occurrences already, we are heavily relying on GraphQLite for our modules. GraphQLite creates the GraphQL schema by using PHP’s reflection to scan and find controllers and data types. The result of this step can be cached by GraphQLite itself.
TheCodingMachine\GraphQLite\SchemaFactory needs the DI container and a PSR-16 cache. By default we pass it a null cache.
Change the cache
There are two ways for you to change the caching backend, first is to provide another cache adapter, the second is to provide another PSR-16 cache implementation.
In both cases you need to override the corresponding key in the DI container through the
Custom cache adapter
You can choose from the
symfony/cache components adapters or create your own adapter implementing the
In case you already have another PSR-16 cache, or want to build your own implementation, instead of overriding the
oxidesales.graphqlbase.cacheadapter key, you can use the
oxidesales.graphqlbase.cache key to inject your PSR-16 cache.
Symfony itself comes with some PSR-16 cache implementations, but strives towards cache contracts.