How long does a query stay cached? #1001
Answered
by
vasilich6107
Vasques1995
asked this question in
Q&A
-
How long does a standard query on 5.0.0 stay cached and can this value be controlled trough the GraphQL Server response? |
Beta Was this translation helpful? Give feedback.
Answered by
vasilich6107
Aug 29, 2021
Replies: 1 comment
-
forever) But the real behaviour depends on |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vincenzopalazzo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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