Skip to content

Commit e46d392

Browse files
author
Luis
committed
Revert Merge caching for entity fields (#996)
1 parent f860e16 commit e46d392

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

modules/graphql_core/src/Plugin/GraphQL/Fields/EntityFieldBase.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ protected function resolveItem($item, array $args, ResolveContext $context, Reso
4040
}
4141
}
4242

43-
if ($itemProperty instanceof CacheableDependencyInterface) {
44-
$context->addCacheTags($itemProperty->getCacheTags());
45-
$context->addCacheContexts($itemProperty->getCacheContexts());
46-
$context->mergeCacheMaxAge($itemProperty->getCacheMaxAge());
47-
}
43+
// if ($itemProperty instanceof CacheableDependencyInterface) {
44+
// $context->addCacheTags($itemProperty->getCacheTags());
45+
// $context->addCacheContexts($itemProperty->getCacheContexts());
46+
// $context->mergeCacheMaxAge($itemProperty->getCacheMaxAge());
47+
// }
4848

4949
return $result;
5050
}

0 commit comments

Comments
 (0)