From e46d392ecde1bfac3ea739f9103cf7f9e5476dde Mon Sep 17 00:00:00 2001 From: Luis Date: Fri, 8 Sep 2023 12:29:58 +0200 Subject: [PATCH] Revert Merge caching for entity fields (#996) --- .../src/Plugin/GraphQL/Fields/EntityFieldBase.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php b/modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php index 95d5226d5..3495619ed 100644 --- a/modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php +++ b/modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php @@ -40,11 +40,11 @@ protected function resolveItem($item, array $args, ResolveContext $context, Reso } } - if ($itemProperty instanceof CacheableDependencyInterface) { - $context->addCacheTags($itemProperty->getCacheTags()); - $context->addCacheContexts($itemProperty->getCacheContexts()); - $context->mergeCacheMaxAge($itemProperty->getCacheMaxAge()); - } + // if ($itemProperty instanceof CacheableDependencyInterface) { + // $context->addCacheTags($itemProperty->getCacheTags()); + // $context->addCacheContexts($itemProperty->getCacheContexts()); + // $context->mergeCacheMaxAge($itemProperty->getCacheMaxAge()); + // } return $result; }