WPGraphQL Smart Cache
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
Tag-aware caching means responses are cached the moment they're computed, and evicted the instant the data behind them changes.
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.
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.
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.
A server-side object cache for environments without network caching — fast repeat responses without re-running the full resolver chain on every request.
Store queries as documents and send them by ID: smaller payloads, cacheable GET requests, and a tighter security surface with allow / deny lists.
Tag-based, automatic purging keeps caches correct. When a node changes, only the responses that referenced it are evicted — everywhere they were cached.
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.
Install from WordPress.org and start caching WPGraphQL queries with automatic, tag-based invalidation.