WP REST Cache
by Acato 4.9 (42 reviews)

WP REST Cache

Enable caching of the WordPress REST API and auto-flush caches upon wp-admin editing.

Tested up to WP 6.8.5 (Current: 6.9.4)
v2026.1.3 Current Version v2026.1.3
Updated 1 month ago Last Update on 03 Mar, 2026
Refreshed 6 hours ago Last Refreshed on
Rank
#1,867
No change
Active Installs
10K+
-34.2%
KW Avg Position
82.8
No change
Downloads
371.2K
+22 today
Support Resolved
100%
No change
Rating
98%
Review 4.9 out of 5
4.9 (42 reviews)

Next Milestone 20K

Total Progress 52.2%
10K+ 20K+
385
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 4,783 more installs to reach 20K+

Rank Changes

1,775 1,823 1,872 1,921 1,969 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
1,775 1,824 1,873 1,921 1,970 26-03-2026 27-03-2026 28-03-2026 29-03-2026 30-03-2026 31-03-2026 01-04-2026 02-04-2026 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
1,775 1,824 1,873 1,921 1,970 11-03-2026 12-03-2026 13-03-2026 14-03-2026 15-03-2026 16-03-2026 17-03-2026 18-03-2026 19-03-2026 20-03-2026 21-03-2026 22-03-2026 23-03-2026 24-03-2026 25-03-2026 26-03-2026 27-03-2026 28-03-2026 29-03-2026 30-03-2026 31-03-2026 01-04-2026 02-04-2026 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
1,852 1,860 1,868 1,876 1,884 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026 22-01-2026 23-01-2026 24-01-2026 25-01-2026 26-01-2026 27-01-2026 28-01-2026 29-01-2026 30-01-2026 31-01-2026 01-02-2026 02-02-2026 03-02-2026 04-02-2026 05-02-2026 06-02-2026 07-02-2026 08-02-2026 09-02-2026 10-02-2026 11-02-2026 12-02-2026 13-02-2026 14-02-2026 15-02-2026 16-02-2026 17-02-2026 18-02-2026 19-02-2026 20-02-2026 21-02-2026 22-02-2026 23-02-2026 24-02-2026 25-02-2026 26-02-2026 27-02-2026 28-02-2026 01-03-2026 02-03-2026 03-03-2026 04-03-2026 05-03-2026 06-03-2026 07-03-2026 08-03-2026 09-03-2026 10-03-2026 11-03-2026 12-03-2026 13-03-2026 14-03-2026 15-03-2026 16-03-2026 17-03-2026 18-03-2026 19-03-2026 20-03-2026 21-03-2026 22-03-2026 23-03-2026 24-03-2026 25-03-2026 26-03-2026 27-03-2026 28-03-2026 29-03-2026 30-03-2026 31-03-2026 01-04-2026 02-04-2026 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
Current #1,867
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 50 100 150 200 250 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
0 50 100 150 200 250 300 26-03-2026 27-03-2026 28-03-2026 29-03-2026 30-03-2026 31-03-2026 01-04-2026 02-04-2026 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
0 100 200 300 400 500 11-03-2026 12-03-2026 13-03-2026 14-03-2026 15-03-2026 16-03-2026 17-03-2026 18-03-2026 19-03-2026 20-03-2026 21-03-2026 22-03-2026 23-03-2026 24-03-2026 25-03-2026 26-03-2026 27-03-2026 28-03-2026 29-03-2026 30-03-2026 31-03-2026 01-04-2026 02-04-2026 03-04-2026 04-04-2026 05-04-2026 06-04-2026 07-04-2026 08-04-2026 09-04-2026 10-04-2026
0 500 1K 1.5K 2K 10-01-2026 13-01-2026 16-01-2026 19-01-2026 22-01-2026 25-01-2026 28-01-2026 31-01-2026 03-02-2026 06-02-2026 09-02-2026 12-02-2026 15-02-2026 18-02-2026 21-02-2026 24-02-2026 27-02-2026 02-03-2026 05-03-2026 08-03-2026 11-03-2026 14-03-2026 17-03-2026 20-03-2026 23-03-2026 26-03-2026 29-03-2026 01-04-2026 04-04-2026 07-04-2026 10-04-2026
0 500 1K 1.5K 2K 2.5K 10-04-2025 22-04-2025 04-05-2025 16-05-2025 28-05-2025 09-06-2025 21-06-2025 03-07-2025 15-07-2025 27-07-2025 08-08-2025 20-08-2025 01-09-2025 13-09-2025 25-09-2025 07-10-2025 19-10-2025 31-10-2025 12-11-2025 24-11-2025 06-12-2025 18-12-2025 30-12-2025 11-01-2026 23-01-2026 04-02-2026 16-02-2026 28-02-2026 12-03-2026 24-03-2026 05-04-2026 10-04-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.9
42 reviews
Overall 98%
5
38 (90%)
4
3 (7%)
3
1 (2%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 4 of 4
Keyword Position Change Type Updated
rest cache 30 Tag 2 days ago
wp-rest-api 76 Tag 2 days ago
rest 91 Tag 2 days ago
cache 134 Tag 2 days ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Support Threads Overview

Resolved
Unresolved
2
Total Threads
2
Resolved
0
Unresolved
100%
Resolution Rate

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
2026.1.3
Last Updated
Mar 03, 2026
Requires WP
4.7+
Tested Up To
6.8.5
PHP Version
7.0 or higher
Author
Acato

Support & Rating

Rating
★ ★ ★ ★ ★ 4.9
Reviews
42
Support Threads
2
Resolved
100%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about WP REST Cache

/**
* Register the /wp-json/acf/v3/posts endpoint so it will be cached.
*/
function wprc_add_acf_posts_endpoint( $allowed_endpoints ) {
if ( ! isset( $allowed_endpoints[ 'acf/v3' ] ) || ! in_array( 'posts', $allowed_endpoints[ 'acf/v3' ] ) ) {
$allowed_endpoints[ 'acf/v3' ][] = 'posts';
}
return $allowed_endpoints;
}
add_filter( 'wp_rest_cache/allowed_endpoints', 'wprc_add_acf_posts_endpoint', 10, 1);

Please note: the WP REST Cache plugin will try to detect relations in the cached data to automatically flush the cache when related items are edited, but this detection is not flawless so your caches might not be flushed automatically.
Can I unregister an endpoint so it is no longer cached?
Yes you can! Use the hook wp_rest_cache/allowed_endpoints like this:

/**
* Unregister the /wp-json/wp/v2/comments endpoint so it will not be cached.
*/
function wprc_unregister_wp_comments_endpoint( $allowed_endpoints ) {
if ( isset( $allowed_endpoints[ 'wp/v2' ] ) && ( $key = array_search( 'comments', $allowed_endpoints[ 'wp/v2' ] ) ) !== false ) {
unset( $allowed_endpoints[ 'wp/v2' ][ $key ] );
}
return $allowed_endpoints;
}
add_filter( 'wp_rest_cache/allowed_endpoints', 'wprc_unregister_wp_comments_endpoint', 100, 1);

Can I force a call to the REST API to not use caching?
Yes you can! Add the GET-parameter skip_cache=1 to your call and no caching will be used.
On the cache overview page I see the object type is 'unknown'. Can I help the WP REST Cache plugin to detect the object type correctly?
Yes you can! Use the hook wp_rest_cache/determine_object_type like this:

function wprc_determine_object_type( $object_type, $cache_key, $data, $uri ) {
if ( $object_type !== 'unknown' || strpos( $uri, $your_namespace . '/' . $your_rest_base ) === false ) {
return $object_type;
}
// Do your magic here
$object_type = 'website';
// Do your magic here
return $object_type;
}
add_filter( 'wp_rest_cache/determine_object_type', 'wprc_determine_object_type', 10, 4 );

Can expired caches be automatically regenerated?
Yes they can! Go to Settings > WP REST Cache, on the Settings tab you can check Enable cache regeneration, this will activate a cron job which will check if there are any expired (or flushed) caches and regenerate them. Using the Regeneration interval you can determine how often this regeneration process should run. The Max number regenerate caches limits the number of regenerated caches per regeneration process, this is so your server doesn't get flooded with the regeneration calls.
Can I hide the 'Clear REST cache' in the wp-admin bar?
Yes you can! Use the hook wp_rest_cache/display_clear_cache_button like this:

function wprc_display_clear_cache_button( $show ) {
return false;
}
add_filter('wp_rest_cache/display_clear_cache_button', 'wprc_display_clear_cache_button', 10, 1);

Can I differentiate between caches based upon request headers?
Yes you can! There are two options for this:
1. Go to Settings > WP REST Cache and add Global cacheable request headers. This is a comma seperated list. These headers will be used for ALL endpoints.
2. Use the hook wp_rest_cache/cacheable_request_headers to specify per endpoint which request headers should be used. Like this:

function wprc_add_cacheable_request_headers( $cacheable_headers ) {
$cacheable_headers['wp/v2/posts'] = 'LANG';
return $cacheable_headers;
}
add_filter('wp_rest_cache/cacheable_request_headers', 'wprc_add_cacheable_request_headers', 10, 1);
function wprc_change_settings_capability( $capability ) {
// Change the capability to users who can edit posts.
return 'edit_posts';
}
add_filter('wp_rest_cache/settings_capability', 'wprc_change_settings_capability', 10, 1);

Can I use WP CLI to flush caches from the command line?
Yes you can! Use the wp wp-rest-cache flush command to flush caches. Type wp wp-rest-cache flush --help to see all options.
Is Redis Object Cache supported?
We are using the WordPress transient API, so as long as you are using a Redis Object Cache plugin which enables Redis caching through the transients API it is supported.
How can I report security bugs?
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage and handle any security vulnerabilities. Report a security vulnerability.

Sign In / Register

You need to sign in or register to use this feature.