From d3c14997d449fbebb5379cc8574af5e62b9b7a8c Mon Sep 17 00:00:00 2001
From: Al Munnings <al.munnings@gmail.com>
Date: Tue, 19 Sep 2023 20:38:31 +1000
Subject: [PATCH] Issue #3388138: Taxonomy Term cache tags appear not to be
 propagating

---
 modules/graphql_compose_edges/src/EntityConnection.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/graphql_compose_edges/src/EntityConnection.php b/modules/graphql_compose_edges/src/EntityConnection.php
index 4c5af000..2053704c 100644
--- a/modules/graphql_compose_edges/src/EntityConnection.php
+++ b/modules/graphql_compose_edges/src/EntityConnection.php
@@ -327,7 +327,9 @@ class EntityConnection implements ConnectionInterface {
     $result = $query->execute();
 
     // Add entity type tag to cache metadata.
-    $this->context->addCacheTags($this->queryHelper->getEntityType()->getListCacheTags());
+    $entity_type = $this->queryHelper->getEntityType();
+    $this->context->addCacheTags($entity_type->getListCacheTags());
+    $this->context->addCacheContexts($entity_type->getListCacheContexts());
 
     return $this->queryHelper->getLoaderPromise($result);
   }
-- 
GitLab