WordPress plugin

WP REST Cache Pro

WP REST Cache Pro is the paid edition of WP REST Cache. The plugin caches responses from default WordPress REST API GET endpoints, including custom post type and taxonomy endpoints. Repeated requests can then be served from cache, helping speed up REST API use. Endpoints that use a custom WP_REST_Controller are not cached automatically and need configuration.

WP REST Cache Pro

Which REST API responses are cached?

WP REST Cache Pro is the paid edition of WP REST Cache. The plugin caches responses from default WordPress REST API GET endpoints, including custom post type and taxonomy endpoints. Repeated requests can then be served from cache, helping speed up REST API use. Endpoints that use a custom WP_REST_Controller are not cached automatically and need configuration.

How do custom endpoints and relationships work?

With Pro, choose custom endpoints for caching and configure their content relationships through wp-admin, without coding. Custom endpoints can also be registered programmatically with the wp_rest_cache/allowed_endpoints hook.

For configured endpoints, the plugin tries to detect related content and flushes caches for the relationships it identifies when that content is edited. Detection can miss relationships, so configure each endpoint to reflect the content used in its responses. When a page or post is edited, the add-on flushes cache related to that content.

Cache controls

  • Set how long caches remain valid.
  • Enable automatic cache regeneration and set its interval and maximum number of caches regenerated per execute.
  • Flush all caches manually or flush specific caches.
  • View how many times each cache has been retrieved.

Installation and setup

In WordPress, open Plugins > Add New, search for “WP REST Cache,” then install and activate it. For manual installation, upload the wp-rest-cache folder to /wp-content/extensions/ and activate the plugin.

After activation, check Plugins > Must-Use for the WP REST Cache must-use plugin. If it is missing, copy wp-rest-cache.php from the plugin’s /sources folder to /wp-content/mu-add-ons/. Set the cache timeout under Settings > WP REST Cache, then configure custom endpoints and their relationships through wp-admin.

WordPress Repository Under Construction Pro UniConsent Premium Universally Enterprise Unlimited Elements For Elementor Pro Update URLS PRO Updater Pro UpdraftCentral Premium Cloud UpdraftPlus Premium Upsell Funnel Builder Pro UpsellWP PRO