Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
WPGraphQL Smart Cache icon

WPGraphQL Smart Cache

v2.6.0
by WPGraphQL · 5.0 (4 reviews)

Do you want your API data fast or accurate? With WPGraphQL Smart Cache, you can have both.

5K+ active installs Updated Nov 20, 2026 Tested to 7.0.9 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
WPGraphQL Smart Cache

About WPGraphQL Smart Cache

WPGraphQL Smart Cache is a WordPress plugin that improves the speed and accuracy of API data by providing caching and cache invalidation support for WPGraphQL Queries. It is recommended to use GET requests with Network Caching for the best performance. The plugin may make breaking changes in the future, so it's important to pay attention to release notes and upgrade notices before updating.

Screenshots

WPGraphQL Smart Cache screenshot
WPGraphQL Smart Cache screenshot

Changelog

2.6.0

New Features

  • smart-cache: add a setting for automatically saved queries with literal argument values (#4723)

2.5.0

New Features

  • leave the admin email and an administrator’s name out of the usage data copy sent to telemetry.wpgraphql.com (#4707)

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.25.0 to 2.26.0 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4683)
  • deps-dev: bump axepress/wp-graphql-stubs from 2.26.0 to 2.26.2 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4719)
  • translate the Extensions page descriptions and Smart Cache setting labels (#4730)

2.4.1

Bug Fixes

  • only show deactivation feedback when usage tracking is opted in (#4655)

2.4.0

New Features

  • smart-cache: pass structured context to graphql_purge listeners (#4622)

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.23.1 to 2.24.2 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4588)
  • deps-dev: bump axepress/wp-graphql-stubs from 2.24.2 to 2.25.0 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4628)
  • deps-dev: bump symfony/yaml from 5.4.53 to 5.4.54 in /plugins/wp-graphql-smart-cache (#4598)
  • smart-cache: stop purging a user’s cached data on every login and logout (#4671)

2.3.4

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.22.2 to 2.23.1 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group across 1 directory (#4348)
  • deps: bump appsero/client from 2.0.6 to 2.0.7 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-patch group (#4495)
  • smart-cache: don’t store response extensions in the object cache (#4501)
  • smart-cache: withhold saved-document settings from restricted views (#4479)

2.3.3

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.20.0 to 2.22.2 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4322)
  • smart-cache: allow filtering the GraphQL query cache key (#4389)
  • smart-cache: apply persisted query grants to authenticated users (GHSA-vcpc-35rg-68xw)
  • smart-cache: bound automatically registered query documents (GHSA-5p5r-f66g-r4vp)
  • smart-cache: identify saved documents by the query they hold, not their slug (#4374)
  • smart-cache: never advertise an error response as cacheable (#4390)

2.3.2

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.18.0 to 2.19.0 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4197)
  • deps-dev: bump axepress/wp-graphql-stubs from 2.19.0 to 2.20.0 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group (#4241)
  • smart-cache: allow a max-age of 0 on saved documents (#4319)
  • smart-cache: prevent a fatal error on option updates when WPGraphQL core is older than 2.18.0 (#4333)
  • smart-cache: require persisted query ids to match the query hash and add an audit of stored documents (GHSA-r844-6gqh-59qj) (#4332)

2.3.1

Bug Fixes

  • deps-dev: bump axepress/wp-graphql-stubs from 2.6.0 to 2.18.0 in /plugins/wp-graphql-smart-cache in the wp-graphql-smart-cache-composer-dev-minor-patch group across 1 directory (#4134)
  • deps-dev: bump guzzlehttp/guzzle from 7.15.1 to 7.15.3 in /plugins/wp-graphql-smart-cache (#4176)
  • deps-dev: bump squizlabs/php_codesniffer from 3.13.5 to 3.13.6 in /plugins/wp-graphql-smart-cache (#4178)
  • wp-graphql-smart-cache: save admin-authored documents with the content-hash slug (#4017)

2.3.0

New Features

  • settings: support per-entry config in the normalized settings map (#4049)
  • smart-cache: invalidate settings-group caches on option updates (#4095)

Bug Fixes

  • deps-dev: bump guzzlehttp/guzzle from 7.12.1 to 7.15.1 in /plugins/wp-graphql-smart-cache (#4100)

2.2.2

Bug Fixes

  • deps-dev: bump guzzlehttp/guzzle from 7.10.0 to 7.12.1 in /plugins/wp-graphql-smart-cache (#3985)
  • deps-dev: bump guzzlehttp/psr7 from 2.11.0 to 2.12.1 in /plugins/wp-graphql-smart-cache (#3987)
  • deps-dev: bump guzzlehttp/psr7 from 2.8.0 to 2.11.0 in /plugins/wp-graphql-smart-cache (#3927)
  • support WordPress 7.0 in the integration test matrix (#3960)

2.2.1

Bug Fixes

  • deps-dev: bump symfony/dom-crawler from 5.4.48 to 5.4.52 in /plugins/wp-graphql-smart-cache (#3856)
  • deps-dev: bump symfony/yaml from 5.4.45 to 5.4.53 in /plugins/wp-graphql-smart-cache (#3860)
  • guard null content when regenerating document hash on updateGraphqlDocument (#3879)

2.2.0

New Features

  • support on-demand revalidation via graphql_purge (#3810)

2.1.0

New Features

  • import WPGraphQL IDE into monorepo (#3542)
  • telemetry: mirror Appsero insights to telemetry.wpgraphql.com (#3785)

Bug Fixes

  • resolve post by percent-encoded slug/URI when post_name is stored encoded (#3582) (#3611)

2.0.1

Bugfixes

  • #306: fix: prevent authenticated request data from being cached and served to public users. This fixes an issue where the object cache could incorrectly cache responses from authenticated users (containing draft posts, private content, etc.) due to WPGraphQL core calling wp_set_current_user(0) mid-request. The fix uses AppContext->viewer for reliable authentication state detection instead of is_user_logged_in().

Chores

  • ci: update deprecated GitHub Actions to v4
  • ci: fix Gherkin test compatibility by pinning behat/gherkin < 4.9

2.0.0

Breaking Changes

  • This release includes breaking changes to be compatible with WPGraphQL 2.0.0. When upgrading WPGraphQL to v2.0.0, you must also upgrade WPGraphQL Smart Cache to v2.0.0. WPGraphQL Smart Cache v2.0.0 is not compatible with WPGraphQL v1.x.x.

Chores / Bugfixes

1.3.3

Chores / Bugfixes

  • #294: fix: queryid not returning X-GraphQL-Keys headers
  • #292: chore: update test workflow to use docker compose instead of docker-compose
  • #291: fix: restore whitespace rules for PHPCBF
  • #286: chore: update .wordpress-org assets
  • #284: chore: Note that hosts might set a limit on caching

1.3.2

Chores / Bugfixes

  • #278: ci: Update tests to run against WordPress 6.5

1.3.1

Chores / Bugfixes

  • #273: fix: improve clarity on Cache settings page
  • #272: fix: invalidate caches for menu items

1.3.0

New Features

  • #270: feat: force enable query analyzer. This fixes a regression to WPGraphQL v1.20.0 where the Query Analyzer became optional and defaulted to “off”. WPGraphQL Smart Cache force-enables the Query Analyzer to support Cache tagging and tag-based cache invalidation.

1.2.1

Chores / Bugfixes

  • #266: ci: update tests to run against WordPres 6.4
  • #266: fix: ensure store_content() is passed a string to adhere to phpstan standards
  • #262: fix: remove invalid namespaces from autoloading. Thanks @szepeviktor!
  • #251: ci: add WP 6.3 to test matrix
  • #258: ci: add build-plugin command to set up no-dev

1.2.0

New Features

  • #227: feat: add garbage collection for graphql_documents (see upgrade notice)

Chores / Bugfixes

  • #244: fix: handle errors when editing graphql documents in the admin
  • #253: ci: add varnish docker image. Update docs.
  • #247: fix: remove wpengine specific code (see upgrade notice).
  • #257:257: ci: use .distignore when building plugin for github release

1.1.4

Chores / Bugfixes

  • #237 fix: when creating a new query, do not show “something is wrong with form data” error
  • #242 ci: increase phpstan to level 7
  • #241 ci: increase phpstan to level 5,6
  • #240 ci: increase phpstan to level 3,4
  • #239 ci: increase phpstan to level 2
  • #236 ci: add phpstan workflow to check code quality
  • #234 fix: do not cache mutations to object cache results
  • #235 ci: tests failing after wpgraphql v1.14.5 release

1.1.3

Chores / Bugfixes

  • #230 fix: disable cache maps when “Use Object Cache” is disabled

1.1.2

Chores / Bugfixes

  • #226 fix: add missing events to purge calls. Remove call to purge list of terms when term relationship has changed.

1.1.1

Chores / Bugfixes

  • #221 fix: updating menus not assigned to locations doesn’t purge menus, even if their model is public

1.1.0

New Features

  • #215 feat: graphql_purge_logs

Chores / Bugfixes

  • #214 fix: over-purging tags

1.0.4

  • #210 fix: post_exists being called even though the post_exists function doesn’t exist in this context. Check instanceof WP_Post instead.

1.0.3

  • #207 fix: ignore updates to “apple_news_update” meta key. Add graphql_cache_ignored_meta_keys filter for modifying the list of ignored meta keys.
  • #205 fix: ErrorException Warning: Attempt to read property “post_type” on null. Thanks @izzygld!

1.0.2

Chores / Bugfixes

  • #202 fix: ErrorException Warning: Attempt to read property “post_type” on null. Thanks @izzygld!

1.0.1

Chores / Bugfixes

  • Add workflow to update plugin assets/readme when those files are changed
  • update links to docs. Thanks @rodrigo-arias!
  • set internal taxonomies to public => false, add tests.
  • fix bug with the “purge cache” button in the settings page not properly purging all caches for WPEngine users

1.0

  • Version change. no functional changes.

0.3.9

  • fix: vendor directory not properly deploying to WordPress.org.

0.3.8

  • fix: rename constant that didn’t get updated in 0.3.4. Thanks @colis!

0.3.7

  • chore: update readme.txt file which is displayed on WordPress.org

0.3.6

  • fix: correct slug in deploy workflow

0.3.5

  • (#189): chore: add workflow to deploy to the WordPress.org repo

0.3.4

  • (#188): fix: update constant name for min required version of WPGraphQL. Conflict with constant name defined in WPGraphQL for ACF.

0.3.3

  • (#184): fix: update min required version of WPGraphQL. This plugin relies on features introduced in v1.12.0 of WPGraphQL.

0.3.2

New Features

  • (#178): feat: add new “graphql_cache_is_object_cache_enabled” filter

Chores/Bugfixes

  • (#179): fix: prevent error when users install the plugin with Composer

0.3.1

  • chore: update readme.txt with tags, updated “tested up to” version
  • chore: update testing matrix to run tests on more versions of WordPress and PHP
  • chore: update docs
  • chore: add icons and banner for WordPress.org

0.3.0

  • feat: a LOT of updates to the documentation
  • feat: add opt-in telemetry via Appsero.

0.2.3

  • fix: fixes a bug where X-GraphQL-Keys weren’t being returned properly when querying a persisted query by queryId

0.2.2

  • fix bug with patch. Missing namespace

0.2.1

  • add temporary patch for wp-engine users. Will be removed when the wp engine mu plugin is updated.

= 0.2.0

  • chore: remove unreferenced .zip build artifact
  • feat: remove a lot of logic from Collection.php that analyzes queries to generate cache keys and response headers, as this has been moved to core WPGraphQL
  • feat: reference core WPGraphQL functions for storing cache maps for object caching
  • chore: remove unused “use” statements in Invalidation.php
  • feat: introduce new “graphql_purge” action, which can be hooked into by caching clients to purge caches by key
  • chore: remove $collection->node_key() method and references to it.
  • feat: add “purge(“skipped:$type_name)” event when purge_nodes is called
  • chore: remove model class prefixes from purge_nodes() calls
  • chore: rename const WPGRAPHQL_LABS_PLUGIN_DIR to WPGRAPHQL_SMART_CACHE_PLUGIN_DIR
  • chore: update tests to remove “node:” prefix from expected keys
  • chore: update tests to use self::factory() instead of $this->tester->factory()
  • chore: update Plugin docblock
  • feat: add logic to ensure minimum version of WPGraphQL is active before executing functionality needed by it
  • chore: remove filters that add model definitions to Types as that’s been moved to WPGraphQL core

0.1.2

  • Updates to support batch queries
  • move save urls out of this plugin into the wpengine cache plugin
  • updates to tests

0.1.1

  • Initial release to beta users

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…

LiteSpeed Cache icon

LiteSpeed Cache

4.8 · 7M+ installs

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

WooCommerce icon

WooCommerce

4.5 · 7M+ installs

Everything you need to launch an online store in days and keep it growing for years. From your…