From 4011f0d815b47702e733506ad9e4f9785c111fda Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Thu, 18 Feb 2021 00:17:14 +1300 Subject: [PATCH] BUGFIX: Malformed cache instance causing pollution and build errors --- src/Schema/Storage/CodeGenerationStoreCreator.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Schema/Storage/CodeGenerationStoreCreator.php b/src/Schema/Storage/CodeGenerationStoreCreator.php index d43f0791f..24beaeb2d 100644 --- a/src/Schema/Storage/CodeGenerationStoreCreator.php +++ b/src/Schema/Storage/CodeGenerationStoreCreator.php @@ -14,10 +14,11 @@ class CodeGenerationStoreCreator implements SchemaStorageCreator { public function createStore(string $name): SchemaStorageInterface { - $factory = Injector::inst()->create(CacheFactory::class, [ - 'namespace' => $name - ]); - $cache = $factory->create(CacheInterface::class); + $factory = Injector::inst()->create(CacheFactory::class); + $cache = $factory->create( + CacheInterface::class, + ['namespace' => 'graphql-schema-' . $name] + ); return CodeGenerationStore::create($name, $cache); } }