Repository navigation
Configuration reference
Every setting on Settings > Ace Redis Cache, tab by tab, with its default.
Settings are stored in one option, aceredis_cache_settings: a site option when the plugin is network activated, an ordinary option otherwise. The name in the third column is the key inside that option.
Saving the settings clears the cache. The one exception: a save that only changes block cache settings retires block entries and leaves pages and objects alone. On a busy site, change settings at a quiet time.
| Setting | Default | Key | Notes |
|---|---|---|---|
| Enable Cache | off | enabled |
The master switch. Nothing is cached while it is off. |
| Back end | Redis | backend |
Redis is recommended. Choose APCu only on a single-server site without Redis. |
| Redis Host | 127.0.0.1 |
host |
Host name or IP address |
| Redis Port | 6379 |
port |
|
| Password | empty | password |
The AUTH password |
| TLS Encryption | off | enable_tls |
For servers that require TLS in transit |
| Username | empty | For a Redis that uses access control lists | |
| Unix socket path | empty | Connect by socket in place of host and port | |
| Database number | 0 | Which Redis database this site uses | |
| Key prefix | empty | Keeps the object caches of two installs on one database apart | |
| Redis Cluster nodes | empty | cluster_nodes |
One seed per line. Uses database 0 and takes precedence over Sentinel. See Redis Cluster. |
| Local memory tier | off | local_tier_enabled |
Keep autoloaded options briefly in the web server’s APCu when using Redis. See Object cache. |
| Local tier lifetime (seconds) | 5 | local_tier_ttl |
1 to 30 seconds. Changes from another server or WP-CLI can take up to this long to appear. |
| Sentinel addresses | empty | sentinel_hosts |
One host:port per line, up to ten. Port 26379 if none given. |
| Sentinel service name | empty | sentinel_service |
With both Sentinel fields set, the host and port are not used. See Requirements and hosting. |
Saving with the cache enabled, or with a new host, port, password or TLS setting, tests the connection first. If the test fails, the previous settings stay and the message says which part failed: the socket, the sign in, the database, or the sentinels when none of them could name a primary.
The page cache drop-in runs before WordPress and cannot read these settings. When your connection is anything other than 127.0.0.1:6379 database 0, the settings screen and Site Health print the wp-config.php lines it needs. A constant always wins over the matching setting. See Constants and filters.
| Setting | Default | Key | Notes |
|---|---|---|---|
| Page Cache | on | enable_page_cache |
Installs advanced-cache.php. Needs WordPress 6.9. |
| Page Cache TTL | 3600 | ttl_page |
Seconds a stored page is fresh |
| Page Cache Max TTL | 0 (off) | page_cache_max_ttl |
Cap on fresh lifetime plus grace in Redis |
| Object Cache | off | enable_object_cache |
|
| Object Cache TTL | 3600 | ttl_object |
Seconds, minimum 60 |
| Object Cache Max TTL | 86400 | object_cache_max_ttl |
Cap on every object cache key. 0 for no cap, otherwise 60 to 2592000. |
| Transient Cache | off | enable_transient_cache |
Installs object-cache.php so transients are kept in Redis |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Stale-while-revalidate grace | 3600 | page_cache_grace |
Seconds past the TTL a stale page may be served while it is refreshed. 0 to 86400. 0 turns stale serving off. |
| Fresh TTL jitter | 0 | page_cache_ttl_jitter |
Percent, 0 to 50. Cuts each page's fresh lifetime by a random amount. |
| Best-selling products to warm | 20 | wc_warm_count |
WooCommerce only. 0 to 100. |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Minification | off | enable_minification |
Minifies HTML before it is stored |
| Compression | off | enable_compression |
Stores pages compressed |
| Compression method | Brotli | compression_method |
brotli or gzip. A method PHP lacks is greyed out. |
Compression levels (brotli_level_page 9, brotli_level_object 5, gzip_level_page 6, gzip_level_object 6) and the smallest size worth compressing (min_compress_size, 512 bytes) have no fields. Change them with the filters of the same name prefixed aceredis_.
| Setting | Default | Key | Notes |
|---|---|---|---|
| Browser Cache Headers | off | enable_browser_cache_headers |
Sends public Cache-Control on page cache hits |
| Max-Age | 3600 | browser_cache_max_age |
Seconds |
| Cache meta headers | off | send_cache_meta_headers |
Age, expiry, compression and live block counters. For debugging. |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Serve cached pages to logged-in users | off | page_cache_logged_in |
See Logged-in page cache |
| Administrators | on | page_cache_li_admins |
Applies once the setting above is on |
| Editors | on | page_cache_li_editors |
|
| Readers | on | page_cache_li_readers |
|
| Signed-in front-end pages read the object cache | on | member_object_cache_read |
Read only, never write |
| wp-admin screens read the object cache | off | admin_object_cache_read |
Read only, never write |
| wp-admin query cache | off | admin_query_cache |
See Object cache |
| Keep for up to | 300 | admin_query_cache_ttl |
Seconds |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Static Asset Cache | off | enable_static_asset_cache |
Long-lived Cache-Control for same-origin assets, with cache-busting query strings |
| Static TTL | 604800 | static_asset_cache_ttl |
Seconds |
| Manage via .htaccess | off | manage_static_cache_via_htaccess |
Apache only. Writes a small managed block and leaves your other rules alone. |
| Prefer existing headers | on | prefer_existing_static_cache_headers |
Removes the managed block when long-lived headers are already being sent |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Block Cache | off | block_cache_enabled |
See Block cache |
| WooCommerce blocks | on | block_cache_woo |
Applies once Block Cache is on |
| Query Loop | on | block_cache_query |
|
| Latest Posts | on | block_cache_latest_posts |
|
| Custom blocks | on | block_cache_custom |
|
| Cache for logged-in users | off | block_cache_logged_in |
Per role |
| Block cache TTL | 43200 | block_cache_ttl |
Seconds |
| Setting | Default | Key | Notes |
|---|---|---|---|
| Dynamic Microcache | off | enable_dynamic_microcache |
Short cache for live block HTML |
| Microcache TTL | 10 | dynamic_microcache_ttl |
1 to 60 seconds |
| Setting | Default | Key | Notes |
|---|---|---|---|
| OPcache Helpers | off | enable_opcache_helpers |
Drops changed files from OPcache after plugin, theme, core and translation updates, warms the active theme and plugins in the background, and shows an OPcache panel on the Diagnostics tab. Only code inside this site is touched. |
The Caching tab shows whether Ace Image Enhancer is active. When it is active, the settings link opens its Media screen, where you can choose the output format. Lens 1.4.4 can serve responsive WebP or AVIF sources alongside the original JPEG or PNG in a single cached page. A browser that cannot use the new format loads the original. Changing the output format or an existing image’s metadata gives this site a new page-cache revision. Visitors get fresh markup and older entries expire on their existing schedule.
If the companion is installed but inactive, an administrator with the right permissions can activate it. If it is absent, the panel links to the product page and, for administrators who can upload plugins, the WordPress ZIP upload screen. You choose whether to install it.


For sites with a CDN or proxy in front. See Varnish and CDNs.
| Setting | Default | Notes |
|---|---|---|
| CDN-Cache-Control header | off | Sends CDN-Cache-Control with the shared lifetime, for edges that read it |
| Cache tag headers | off | Sends Cache-Tag and Surrogate-Key on every cached page, so an edge can be purged by tag |
| Varnish mode | automatic | On, off or automatic. Key varnish_mode. |
| Varnish servers | 127.0.0.1:6081 |
Up to ten addresses. Key varnish_servers. Each has a Test, a Flush and its last purge result. |
| Public edge fragments | Existing token-configured sites keep their opt-in |
enable_esi. Serve only registered public text through a trusted Varnish. A valid origin token and matching VCL are required. |
| Cloudflare | off | Purges Cloudflare when the plugin invalidates pages. Needs your zone ID and an API token. Keys cloudflare_enabled, cloudflare_zone_id, cloudflare_api_token. |
| Setting | Default | Key | Range |
|---|---|---|---|
| Prioritise popular posts when Ace Popular Posts is active | off | warm_popular_posts |
Ace Popular Posts can supply eligible public URLs for up to a quarter of the batch, capped at ten. Other slots follow the usual list. |
| Keep pages warm | off | warm_enabled |
Requires the page cache to be enabled |
| Pages checked per run | 40 | warm_batch |
1 to 200 |
| Minutes between runs | 10 | warm_interval |
5 to 1440 |
| Stand down above this load average | 4.0 | warm_max_load |
0 to 256. Use 0 to disable the load check. |
| Most pages in the list | 500 | warm_max_urls |
1 to 5000 |

See Purging and refresh for the order of the pages and the controls available from WP-CLI.
Critical CSS is off by default (enable_critical_css). It only applies to a public guest page that ARC can store in the full page cache. The theme must have a matching build for the exact HTML and one local stylesheet whose filename contains its SHA-256 digest. A normal page-cache hit serves the stored page directly.
In the theme build environment, run the builder from the matching ARC source release with two to six viewport sizes. For example, replace SHA256 here with the real digest:
node bin/build-critical-css.cjs page.html main.SHA256.css theme/arc-critical-css 390x844 1365x768For a CI report, append --report > critical-css-report.json. The JSON gives the CSS byte counts, first-screen pixel check and first contentful paint for the ordinary page and critical-only preview at each viewport. Timings are single, unthrottled local samples in milliseconds and can be null when unavailable. No visitor data is collected.
The builder checks that the first screen matches the full stylesheet at each size. The browser loads the complete stylesheet for the rest of the page. Unmatched pages, unmeasured viewport sizes and browsers that block the loader use the ordinary link. Keep the old CSS files until cached HTML referring to them has expired or been purged. Rebuild when the HTML, stylesheet or measured viewports change.

Enable Offline home page (enable_service_worker) to show a public message when a returning signed-out visitor cannot reach the home page. The browser needs an earlier online HTTPS visit and cookie-store support. ARC stores its offline screen and icon. Articles, account pages, baskets and form submissions continue to use the network.
Set the text in Public offline message (offline_message). An existing app manifest or overlapping service worker takes priority. A custom app can claim the scope with aceredis_offline_provider_active. On multisite, enter the participating site IDs in offline_blog_ids. The root site of a path-based network is excluded so child sites can manage their own scopes.

These hints are off by default (enable_resource_hints). On WordPress 6.1 or later, ARC can preload one local WOFF2 file that matches the block theme’s declared body font. It leaves any existing font preload in place.
Under Preconnect to these HTTPS asset hosts, enter the hostnames you want the browser to connect to early (resource_hint_hosts). ARC adds at most two preconnects per page. A host must also provide a script or stylesheet queued for that page.
On WordPress 6.8 or later, Prefetch a likely next post using aggregate navigation counts can prioritise one existing link on an eligible public post. Train and evaluate a model with aggregate post-to-post counts before enabling the checkbox. ARC collects no visitor histories. Train and evaluate the model with WP-CLI.

One pattern per line. * and ? are wildcards.
| Setting | Key | What it does |
|---|---|---|
| Exclude Sitemaps | exclude_sitemaps |
Keeps sitemap URLs out of the page cache. Off by default. |
| Cache Key Exclusions | custom_cache_exclusions |
Object cache keys that are never stored, for example user_meta_*
|
| Transient Exclusions | custom_transient_exclusions |
Transients that are never stored in Redis, for example _transient_feed_*
|
| Content Exclusions | custom_content_exclusions |
Text that, when found in a page, stops that page being minified |
| Block Exclusions | excluded_blocks |
Block names, for example core/html or my-plugin/live-*
|
| Exclude common basic blocks | exclude_basic_blocks |
Adds paragraph, heading, list, image and gallery to the list |
| Treat excluded blocks as dynamic | dynamic_excluded_blocks |
Cuts the listed blocks out of the stored page and renders them on each hit. See Page cache. |
To exclude URLs from the page cache, use the aceredis_cache_excluded_urls filter:
add_filter( 'aceredis_cache_excluded_urls', function ( $patterns ) {
$patterns[] = '/members/';
return $patterns;
} );A URL is excluded when it contains any of the strings.
Shown only when WooCommerce is active. Every setting is described on WooCommerce.
| Setting | Default | Key |
|---|---|---|
| Cached pages for logged-in customers | off | wc_page_cache_customers |
| Basket and checkout object cache reads | off | wc_object_cache_read |
| Cart Cookie on Product Pages | on | wc_skip_cart_cookies |
| Persistent Cart (disable) | on | wc_disable_persistent_cart |
| Variation AJAX Threshold | 15 | wc_variation_threshold |
| Action Scheduler time limit | 15 | wc_action_scheduler_time_limit |
| Action Scheduler batch size | 10 | wc_action_scheduler_batch_size |
| Skip Variation Children on Archives | on | wc_skip_children_on_archives |
| Skip Composite Sync on Archives | on | wc_skip_composite_sync_on_archives |
| WooCommerce URL Exclusions | on | wc_cache_url_exclusions |
Nothing to set here. The tab has:
- Connection Test: connects, writes a value and reads it back.
-
System Diagnostics: PHP, the Redis extension, the server's version and memory, the state of each drop-in and of
WP_CACHE, and suggestions. - Performance Metrics: hit and miss counts and key counts.
-
Redis Health: how often Redis finds what it is asked for, memory used against the server's limit, evicted keys, the eviction policy, and this site's cached page count. It warns when the policy would refuse writes once memory is full or throw keys away at random, and when memory is nearly full. Where a managed service does not allow the
INFOorCONFIGcommands, the panel says those figures are not available and caching carries on. -
OPcache: with OPcache Helpers on, whether OPcache is full and which
php.inisetting to raise. - Export settings and Import settings: see below.
On the Diagnostics tab, Export settings downloads a JSON file and Import settings reads one back. wp aceredis settings export and import do the same from the command line.
- The Redis password is left out of the file unless you tick the box. A file without one keeps the password the site already has.
- Only settings this version knows are imported.
- An import that would switch the cache on, or point it at another Redis, tests the connection first.
The plugin reports to Tools > Site Health.
| Test | Checks |
|---|---|
| Cache connection | Whether Redis answers, including every primary in a cluster. On the single-server APCu back end, it checks APCu and the state folder. |
| Cache drop-ins | Whether the drop-ins are installed and current, and WP_CACHE is set |
| OPcache | Whether it is on and has room |
| Missed cache invalidations | Whether an invalidation is still waiting for Redis after an outage |
The Info tab has an Ace Redis Cache section listing the settings, without the password. It also reports Redis server hits, misses, memory and keys, plus ARC’s circuit-breaker state. Shared Redis counters include activity from other sites. The status ability exposes the same measures to authorised callers.

On WordPress 6.9 and later the plugin registers five abilities. You can check cache status, set the object cache preference, flush the cache, purge pages and refresh pages in place. Pass an explicit boolean enabled to ace-redis-cache/set-object-cache. The persistent object-cache drop-in has its own installation and management controls. Only users who can manage the plugin's settings can run them, and the status report never includes the Redis host and port.
They are not offered to AI agents unless you turn that on:
add_filter( 'aceredis_abilities_expose_to_agents', '__return_true' );Even then, each request must come from a user with permission to manage the cache.
The sidebar shows the installed version and a Test Connection shortcut. Clear Block Cache appears when the block cache is available and Refresh OPcache appears when OPcache Helpers are enabled. Each shortcut opens the relevant tab and runs the action. Clear All Cache is also available in the admin toolbar. See Purging and refresh.
The settings screen uses a REST API under /wp-json/ace-redis-cache/v1/, open to administrators only. The routes most useful to scripts:
| Route | Method | Does |
|---|---|---|
/status |
GET | Connection and cache state |
/health |
GET | Cache health figures |
/flush-cache |
POST | Clears the cache |
/block-cache/stats |
GET | Block cache figures |
/block-cache/flush |
POST | Retires stored blocks |
/dropins-status |
GET | State of the two drop-ins |
/dropins-update |
POST | Installs the plugin's current drop-ins |
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


