Skip to content

How long does a query stay cached? #1001

Answered by vasilich6107
Vasques1995 asked this question in Q&A
Discussion options

You must be logged in to vote

forever)
There is no cache invlidation mechanisms built in
The default behaviour is to run query -> store data in cache -> on query re-run take data from cache -> execute real query behind the scene -> update cache with new data -> update UI

But the real behaviour depends on fetchPolicy

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vincenzopalazzo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request 🍻 discussion 📦 cache Relates to caching functionality
2 participants
Converted from issue

This discussion was converted from issue #947 on December 31, 2021 10:26.