Repository navigation
FAQ
It keeps finished pages and WordPress's object cache in Redis, so most requests are answered without rebuilding the page or re-running the queries behind it.
I recommend Redis. It is the default, survives PHP restarts and can be shared by several web servers. On a single-server site without Redis, you can select APCu on the Connection tab. Its cache empties when PHP restarts. See Requirements and hosting.
Yes.
Yes, including Amazon ElastiCache, with TLS, and on managed cluster-mode and serverless endpoints.
Yes, from 0.10.8. Enter your sentinels and the service name on the Connection tab. The plugin asks them for the current primary each time it connects, so after a failover the next request finds the new one. See Requirements and hosting.
Yes. For a self-managed cluster, enter one or more seed nodes on the Connection tab and use database 0. For a managed service with one endpoint, enter that endpoint as the Redis host. See Redis Cluster.
No. It is GPLv2 or later. There is no premium version, no licence key and no feature held back.
It connects to the Redis server you configure and to your own site when warming pages. If you use the Varnish or Cloudflare integrations, it also sends the relevant purge requests there. There is no telemetry.
I do: Shane Rounce, at AceMedia. I wrote it for the sites I run and I maintain it.
Yes. The caching behind it has been in production for four years, and it has answered more than 5.6 billion cache hits from Redis across the sites running it. See Tested at scale.
A fresh install starts with caching off, on purpose. Set up the back end on the Connection tab, tick Enable Cache, choose the cache types and add WP_CACHE to wp-config.php. See Installation.
No. The plugin installs and updates them when you save the settings. You only copy them yourself when your deploy rebuilds wp-content from version control. See Drop-ins.
Yes. Export them as a JSON file from the Diagnostics tab or with wp aceredis settings export, and import them on the other site. The Redis password is left out unless you ask for it. See Configuration reference.
Yes. Tools > Site Health has four tests, and the Info tab lists the plugin's settings without the password. See Configuration reference.
Yes. Each has its own switch.
Run one page cache and one object cache per site. Two page caches store each other's output, and two plugins cannot both own object-cache.php. Ace Redis Cache will not overwrite a drop-in that belongs to something else, so turn the other off first.
PHP 7.4 is the oldest. The newest release, PHP 8.6, is supported too, and so is everything in between. See Requirements and hosting.
5.0 or later for the object and transient caches, 6.5 for the block cache and 6.9 for the page cache.
Page Cache, Object Cache and Transient Cache on, everything else at its default. Add early serve once the X-Ace-Early header shows hits. Turn on the block cache if your pages have product grids or query loops. Leave minification, compression and browser cache headers until the rest is settled.
Not by default. Signed-in visitors get live pages. You can turn on the logged-in page cache, which gives each group its own copy and swaps in each visitor's toolbar and security tokens.
Yes. Switch on Keep pages warm under Caching > Cache warming. It checks a batch of URLs each run and queues missing pages for the background refresher. The warmer is off by default. See Purging and refresh.
The post's page and the listings that show it are refreshed in the background. Visitors keep getting the stored copy until the new one is ready. See Purging and refresh.
Clearing a clean path removes that page and its recorded query-string variants. Clearing a URL with a meaningful query string removes that exact variant. Tracking parameters are ignored.
No. Tracking parameters such as utm_source, gclid and fbclid are dropped from the cache key, so a campaign link is served the same stored page as the clean URL.
No. Each has its own, so themes that send different markup to phones work.
No. REST responses are never stored as pages.
Pages render live and the object cache falls back to memory for each request. The site is slower but it stays up. Timeouts are short, so a slow Redis cannot hold PHP workers.
If something was deleted or flushed while Redis was away, the first request that reconnects flushes this site's keys once, so nothing stale comes back.
Nothing breaks. Every request is served uncached, and the cache cannot be switched on until a connection test passes.
The X-AceRedisCache response header says, for example BYPASS; reason=logged_in or MISS; reason=empty_main. Every reason is listed on Response headers.
Add define( 'ACEREDIS_DISABLED', true ); to wp-config.php. The plugin and both drop-ins stand aside until you remove the line.
The plugin removes its own object-cache.php and advanced-cache.php, and never a drop-in that belongs to something else. Activating again puts them back.
Yes. Each hit carries an ETag, and a request that sends it back gets 304 Not Modified with no body.
Yes. List the block under Block Exclusions and treat excluded blocks as dynamic. The rest of the page is cached and that block is rendered on each hit. See Page cache.
No. Minification applies to the HTML of a page as it is stored. It does not bundle or rewrite asset files.
Yes. Basket, checkout and account pages are never cached, and anyone with something in their basket gets live pages. See WooCommerce.
Yes. Network activate it for one set of settings across the network. See Multisite.
Yes. Purges are mirrored to Varnish for you, with settings for the servers, a test and a flush. For a CDN there are cache tag headers and hooks. See Varnish and CDNs.
Only if you ask it to. Switch the Cloudflare integration on and give it your zone ID and an API token, and the pages the plugin invalidates are purged at Cloudflare too. A full clear purges your host name only, never the whole zone. Nothing is sent to Cloudflare while it is off.
Yes. Turn on Cache tag headers and every cached page carries Cache-Tag and Surrogate-Key headers. When a post changes, the aceredis_cache_tags_invalidated action hands you the tags to purge.
On the Connection tab. The plugin tests the connection on save and says which part failed if it cannot connect. If you use the page cache, add the matching constants to wp-config.php too: the settings screen lists the exact lines.
PHP on the command line has its own OPcache. wp aceredis opcache flush and warm send a signed request to your own site so the web server does the work. Turn on OPcache Helpers first.
On WordPress 6.9 and later the plugin registers five abilities for cache status, the object cache preference, flushing, purging and refreshing. Setting the preference takes a boolean and leaves drop-in management to its own controls. They are not offered to AI agents unless you add a filter to allow it, and each request must still come from a user who may manage the cache. See Configuration reference.
if ( function_exists( 'aceredis_refresh_urls' ) ) {
aceredis_refresh_urls( array( get_permalink( $post_id ) ) );
}Use a refresh when you know which pages changed. Use aceredis_soft_purge_page_cache() when the whole site did. See Purging and refresh, and the worked Hook examples.
Define DONOTCACHEPAGE while rendering it, or add its path with the aceredis_cache_excluded_urls filter.
The object cache refuses values over 64 KB, only stores certain groups in Redis, and caps every lifetime at a day by default. To keep a group of your own in Redis, call aceredis_add_persistent_groups(). See Object cache.
Yes. Before 0.10.0, constants began ACE_REDIS_, ACE_OC_ or ACE_RC_, hooks began ace_redis_ or ace_rc_, and the commands were wp ace .... Everything now uses the single aceredis prefix. If you are following an older note, translate the names.
In readme.txt in the repository. See Changelog.
See Reporting problems.
Ace Redis Cache: a page cache and object cache for WordPress, backed by Redis or Valkey. Written and maintained by Shane Rounce at AceMedia. Website · Repository · Issues · GPLv2 or later
Setting up
The caches
Your stack
Reference
Help
