Skip to content

Do not purge graphQL cache for specific sections #9897

Answered by brandonkelly
edwwaarrdd asked this question in Q&A
Discussion options

You must be logged in to vote

The more specific your query is, the less likely its cache will get cleared when an entry is saved/deleted.

  • If the query includes the id argument, it will only get cleared when that specific entry ID is saved/deleted.
  • If the query includes the type/typeId arguments, it will only get cleared when entries of the same type are saved/deleted.
  • If the query includes the 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@edwwaarrdd
Comment options

@andris-sevcenko
Comment options

@edwwaarrdd
Comment options

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