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.
Yes. The plugin uses a Redis or Valkey server and PHP's Redis extension. It does not come with either. See Requirements and hosting.
Yes.
Yes, including Amazon ElastiCache, with TLS, and on cluster-mode and serverless endpoints.
No. It is GPLv2 or later. There is no premium version, no licence key and no feature held back.
Only to the Redis server you configure, to a Varnish you run, and to your own site when warming pages. There is no telemetry.
I do: Shane Rounce, at AceMedia. I wrote it for the sites I run and I maintain it.
It has been in production for four years, across client sites that handle hundreds of millions of hits over single busy weekends. See Tested at scale.
A fresh install starts with caching off, on purpose. Connect it to Redis, 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 nonces.
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, and there are hooks for telling a CDN. See Varnish and CDNs.
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.
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
- Page cache
- Measured image priority
- Object cache
- Logged-in page cache
- Block cache
- Purging and refresh
Your stack
Reference
Help
