Skip to content

Invalidate time-sensitive cache entries #2991

Answered by kitten
freb asked this question in Q&A
Discussion options

You must be logged in to vote

Hiya 👋
I assume you mean in Graphcache, i.e. our normalised cache?

You could try to write a resolver that basically returns that object (or the given ID field for it). Then that resolver can return undefined which is basically a signal to tell the cache that the field is uncached/missing which will automatically force a new request to be made

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@freb
Comment options

Answer selected by freb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants