Skip to content

Mutations should not be cached  #196

@jasonbahl

Description

@jasonbahl

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

Metadata

Metadata

Assignees

Labels

type: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions