diff --git a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderEntityListProducerBase.php b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderEntityListProducerBase.php index c2ad6bbe8..289582a11 100644 --- a/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderEntityListProducerBase.php +++ b/modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderEntityListProducerBase.php @@ -205,6 +205,10 @@ protected function query( $query->range($offset, $limit); $storage = $this->entityTypeManager->getStorage($type); + $entityType = $storage->getEntityType(); + + $cacheContext->addCacheTags($entityType->getListCacheTags()); + $cacheContext->addCacheContexts($entityType->getListCacheContexts()); $cacheContext->addCacheableDependency($storage->getEntityType()); return $query; }