WPGraphQL Smart Cache

Fast API responses.
Always accurate.

Cache WPGraphQL queries aggressively, then invalidate them precisely — so your API stays fast without ever serving stale data.

Free & open source · GPL-2.0 · Requires WPGraphQL

How it works

Cache aggressively.
Invalidate precisely.

Tag-aware caching means responses are cached the moment they're computed, and evicted the instant the data behind them changes.

Cache aggressively

Every response is tagged with the IDs of the nodes and lists it touched (via WPGraphQL's Query Analyzer). GET requests can then be cached at your host's network/edge layer and served in milliseconds.

CACHE · HIT4 msedge
X-GraphQL-Keys: post:42 author:9 list:post
TTL03:41 left
Invalidate precisely

When content changes, Smart Cache purges only the cached responses tagged with the affected nodes — no manual TTL guessing, no blanket flushes, no stale data. On-demand purges are available too, via graphql_purge.

Post#42updated
Purge tags
post:42author:9list:post
12 cached responses invalidated everywhere
What's inside

Everything you need to
cache with confidence.

Network Cache

Serve GET queries straight from your host's network/edge cache for full-page-cache-fast API responses. Available on supported hosts, with a hosting guide for others.

Object Cache

A server-side object cache for environments without network caching — fast repeat responses without re-running the full resolver chain on every request.

Persisted Queries

Store queries as documents and send them by ID: smaller payloads, cacheable GET requests, and a tighter security surface with allow / deny lists.

Smart Invalidation

Tag-based, automatic purging keeps caches correct. When a node changes, only the responses that referenced it are evicted — everywhere they were cached.

Pricing & support

Free and open source.
Built in the open.

WPGraphQL Smart Cache is a FREE open-source plugin. The code is on GitHub; report bugs or request features through issues, and visit the WPGraphQL Discord for general questions.

FAQ

Frequently asked
questions.

Make your API fast
without going stale.

Install from WordPress.org and start caching WPGraphQL queries with automatic, tag-based invalidation.