Replies: 3 comments 3 replies
-
looking for the same feature or a workaround |
Beta Was this translation helpful? Give feedback.
-
This product just appeared from the guys behind the playground: https://graphcdn.io/ which invalidates the cache after a mutation and stores/invalidates in CDN edges. I came here to ask that a similar feature get baked directly into Apollo Cache as it's currently the reason we only set maxAge to 5 seconds, to avoid stale data after mutations. We want cache, but we can't deal with the fact that it's not possible to invalidate that at all. Something like Apollo Client InMemory cache alone would be awesome, which is an in-memory state which gets updated after mutations and subscriptions using the typename + id |
Beta Was this translation helpful? Give feedback.
-
Any update on the baked-in feature to invalidate a CDN cache after a mutation, I am using CloudFront... |
Beta Was this translation helpful? Give feedback.
-
We are using
@cacheControl
and it works great! However a time based cache expiration is not enough for us. We want to be able to invalidate specific cache keys when a mutation is successful.Consider following API:
When I invoke
addMember
I would like to invalidate the cache forQuery:team
. How can I implement such logic?I thought about a custom directive that specifies which cache keys should be invalidated but I'm not quite sure how to design that:
Beta Was this translation helpful? Give feedback.
All reactions