wp-graphql / wp-graphql-smart-cache

Smart Caching & Cache Invalidation for WPGraphQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutations should not be cached

jasonbahl opened this issue · comments

Currently mutations are being cached in the object cache, and they should not be.

Steps to reproduce:

  • activate WPGraphQL Smart Cache
  • Under "GraphQL > Settnigs > Cache" enable "Use Object Cache"
  • As a public, not-logged-in user, execute a mutation via GraphQL POST request, (like createComment, as shown below)
  • Execute the same mutation a 2nd time, and see the response that "This response was not executed at run-time but has been returned from the GraphQL Object Cache"

CleanShot 2023-02-21 at 12 53 23

Hey Jason,

Is there an update on this?

I am on version 1.1.1 and Im having the same issue.

Kind Regards,