Do not purge graphQL cache for specific sections #9897
Answered
by
brandonkelly
edwwaarrdd
asked this question in
Q&A
-
Now when a section/entry type is created, updated or deleted the whole graphQL cache gets cleared. |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Sep 29, 2021
Replies: 1 comment 3 replies
-
The more specific your query is, the less likely its cache will get cleared when an entry is saved/deleted.
It’s not possible to opt a query cache getting cleared in those cases, however. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The more specific your query is, the less likely its cache will get cleared when an entry is saved/deleted.
id
argument, it will only get cleared when that specific entry ID is saved/deleted.type
/typeId
arguments, it will only get cleared when entries of the same type are saved/deleted.section
/sectionId
arguments, it will only get cleared when entries of the same section are saved/deleted.It’s not possible to opt a query cache getting cleared in those cases, however.