From e82457e45a290dd2e025d20ddf5b6a4b65411a77 Mon Sep 17 00:00:00 2001 From: Anders Gustafsson <34234789+anders-photowall@users.noreply.github.com> Date: Tue, 12 May 2026 14:01:06 +0200 Subject: [PATCH] 8942 - clear product-category cache on mutation (#194) --- src/resolvers/products-resolver.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resolvers/products-resolver.ts b/src/resolvers/products-resolver.ts index 60db56d..8c13f2f 100644 --- a/src/resolvers/products-resolver.ts +++ b/src/resolvers/products-resolver.ts @@ -583,6 +583,7 @@ export const productMutationTypeDefs = { productId, categoryIds, ); + await sendProductUpdatedEvent([productId], ['categories']); return (dataSources.productApi).getProduct(productId); }, @@ -599,6 +600,7 @@ export const productMutationTypeDefs = { productId, categoryIds, ); + await sendProductUpdatedEvent([productId], ['categories']); return (dataSources.productApi).getProduct(productId); },