Changelog
What changed, release by release.
36 releases so far. The newest is at the top, and each one is also on GitHub.
0.13.0
- Report Redis server cache hits, misses, memory, keys and circuit-breaker state through Site Health and the status ability.
- Add a privileged ability to set the object cache preference. Keep admin-bar assets during production builds.
- Recognise registered dynamic blocks with context-independent public text for Varnish fragments.
- Optionally prefetch one likely next-post link using locally supplied aggregate counts and native WordPress speculation rules.
- Pair with Lens 1.4.4 for responsive WebP or AVIF with retained originals in the same cached page.
0.12.0
- ARC respects gzip and Brotli refusals in the browser's Accept-Encoding header. WordPress and early cache hits validate compressed page data before sending it. ARC preserves existing Vary fields.
- When Ace Popular Posts is available, the warmer can use its existing aggregate rankings for up to a quarter of each batch, capped at ten eligible pages. ARC collects no visitor histories. This option is off by default.
- An optional offline home page offers a short public message to returning signed-out visitors in supported browsers. It stores the offline screen and icon. It respects existing web apps and requires explicit site IDs on multisite.
- Theme developers can build critical CSS for an exact guest page and measured viewport. It requires one immutable local stylesheet, uses the ordinary link when a build does not match, and is off by default.
- Varnish can assemble explicitly registered public text fragments with individual lifetimes. It requires matching origin and Varnish configuration. Direct visitors receive the inline text.
0.11.1
- The Caching tab recognises Ace Image Enhancer and offers the appropriate settings, activation or download link. Its image conversion can now work alongside ARC's page cache.
- I added optional browser resource hints. ARC can preload the theme's local body font and prioritise connections to two approved HTTPS asset hosts. The feature is off by default.
- A site page flush now removes the stored page timestamps alongside the pages, including after a Redis outage.
- I now bypass the early page cache for previews, Customizer changesets and editor requests with
?context=edit. The same editor rule applies after WordPress loads. - When I prime OPcache, the plugin skips files PHP has already loaded, cached files and duplicate paths to the same file. The REST response lists the files it actually compiled.
0.11.0
- Redis is now optional. A site without Redis can cache in the server's own memory with APCu, chosen on the settings screen or offered when no Redis answers at set-up. It works on one server only and starts empty after PHP restarts, so Redis is still what I recommend.
- Redis Cluster support. List some of the cluster's nodes in the new Redis Cluster nodes setting, or in
ACEREDIS_CLUSTER_NODES in wp-config.php, and the plugin, the object cache and the page cache all use the cluster. Status and Site Health show every primary and treat the cluster as down while any primary is. - New: an optional local memory tier that keeps the autoloaded options in APCu for a few seconds. It is off by default and only pays when Redis is on another server or the autoloaded options are large.
- The settings screen has a new look, with quick actions in the sidebar: Clear Block Cache, Test Connection and Refresh OPcache. It uses the Press Start 2P font by Cody Boisclair (SIL Open Font License 1.1), bundled with the plugin.
- New: an optional cache warmer, off by default. When I switch it on under Cache warming, it checks the next forty pages every ten minutes (home, archives, terms, then the newest posts) and queues the ones that are not stored for the background refresher. It stands down above a load limit or when the
aceredis_warm_paused filter says so, and the list of pages can be changed with aceredis_warm_urls. wp aceredis warm status and wp aceredis warm run show it and drive it. - Wording: the settings screen, the REST field descriptions and this file say security token throughout.
0.10.8
- Redis Sentinel support. Give the plugin your sentinels and the service name and it asks them for the current primary whenever it connects, in the plugin and in both drop-ins, and finds the new primary by itself after a failover. New settings on the Connection tab, and
ACEREDIS_SENTINELS, ACEREDIS_SENTINEL_SERVICE and ACEREDIS_SENTINEL_PASSWORD constants. The connection test says when no sentinel could name a primary, and wp aceredis status shows which server is the primary and when it last changed.
0.10.7
- Code review pass for the WordPress.org plugin checks: every place the plugin reads the request is either sanitised or carries a note saying why it is read as it is, and the page cache drop-in no longer leaves its working variables behind as globals. No change to what is cached or how.
- The background refresh queue only ever takes this site's own address, so a request arriving under another host name cannot add that name to it.
- The slow request log strips control characters from the values it records.
- On a page the drop-in passes on to WordPress, its Redis connection is closed straight away instead of staying open for the rest of the request.
0.10.6
- A page is now stored the first time it is viewed, so the second view is a hit. Before, with the transient cache off, a page was only stored on its second view. Return true from the
aceredis_enable_first_pass_skip filter for the old behaviour. - New connection settings: Redis ACL username, Unix socket path, database number and an object cache key prefix. The connection test and the test run on save use all of them and say whether the socket, the sign in or the database was the part that failed. New
ACEREDIS_USERNAME and ACEREDIS_PREFIX constants; constants still win over settings. - New Redis Health panel on the Diagnostics tab: hit ratios, memory against the server's limit, evicted keys, the eviction policy with a plain warning when it is unsuitable for a cache, and this site's page count, counted in the background with SCAN.
- OPcache, behind the existing OPcache Helpers setting: a health panel with plain advice, automatic invalidation of changed files after plugin, theme, core and translation updates, a background warm of the active theme and plugins, and
wp aceredis opcache status|flush|warm, which act on the web server's OPcache. - Varnish now has settings: on, off or automatic, one or more servers, a test, the last purge result for each server and a flush, on the settings screen and as
wp aceredis varnish status|test|flush. - Optional edge cache headers, off by default:
CDN-Cache-Control, and Cache-Tag and Surrogate-Key headers on every cached page, with the tags for a changed post passed to the new aceredis_cache_tags_invalidated action. - Optional Cloudflare integration, off by default. With your own API token and zone ID, pages the plugin invalidates are also purged at Cloudflare after the response has been sent. A full clear purges your hostname only. See External services below.
- On WordPress 6.9 and later the cache status, flush, purge and refresh operations are registered as abilities.
- After an update or a deploy the plugin now refreshes its own drop-ins on the first request of any kind. Before, they stayed on the previous version until an administrator visited wp-admin.
- The
aceredis_dynamic_block_patterns filter now runs when the Block Exclusions setting is empty, so a block can be kept live from code alone.
0.10.5
- New WP-CLI commands:
status, flush, purge, warm, dropin, enable, disable and settings export|import. See the FAQ. - Settings can be exported to a JSON file and imported on another site, from the Diagnostics tab or WP-CLI. The password is left out unless asked for.
- Site Health tests for the Redis connection, the drop-ins, OPcache and waiting invalidations, plus the plugin's settings on the Info tab.
aceredis_add_persistent_groups() and aceredis_add_write_through_groups() let a plugin or mu-plugin keep its own object cache groups in Redis.- On PHP 8.2 and later the Redis password is kept out of error stack traces.
- The changelog, comments and tests no longer point at particular sites.
0.10.4
- The cache can only be switched on once Redis answers. Saving with the cache enabled, or with a new host, port, password or TLS setting, tests the connection first; if it fails the previous settings stay and the message says what failed.
ACEREDIS_SKIP_CONNECTION_TEST skips the test. - New emergency off switch:
define('ACEREDIS_DISABLED', true); in wp-config.php makes the plugin and both drop-ins stand aside for every request. - If a delete or flush cannot reach Redis, the first request that reconnects flushes this site's keys once, so nothing stale comes back after an outage.
- Deactivating removes the plugin's own object-cache.php and advanced-cache.php (never another plugin's), activating puts them back, and deleting leaves no file behind.
- Page cache hits answer
If-None-Match and If-Modified-Since with 304 Not Modified, from the drop-in and from WordPress. - The
X-AceRedisCache header now says why a page was not cached, for example BYPASS; reason=logged_in. The reasons are listed in the FAQ; the aceredis_expose_bypass_reason filter leaves them out. - A new site on the default theme now gets its home page cached. A short main area that holds real content (a heading, a paragraph, a list) counts as a rendered page; an empty one is still refused.
- Internal trace lines stay out of debug.log unless
ACEREDIS_DEBUG_TRACE is set. - The shared background lock file used when warming pages is now set with
ACEREDIS_BACKGROUND_LOCK or the aceredis_background_lock_file filter.
0.10.3
- Fixed a fatal error on servers without the PHP Redis extension (
Class "Redis" not found). With the extension missing the plugin now behaves as it does when no Redis server answers: every request is served uncached.
0.10.2
- When a background refresh stores a new copy of a page, clear that page in a Varnish in front of the site, so visitors get the refreshed copy without waiting for Varnish's own lifetime to run out.
0.10.1
- New
aceredis_refresh_urls() function for other plugins: refresh a list of known pages in place, desktop and mobile, instead of marking the whole site stale.
0.10.0
- Every option, hook, function, constant, scheduled event and WP-CLI command now uses the single
aceredis prefix. Constants set in wp-config.php are now ACEREDIS_*, and the WP-CLI commands are wp aceredis .... - Cached pages and objects already in Redis are unaffected.
0.9.11
- Keep cache-clear and sitemap-primer work budgets steady when the system clock changes.
- Preserve real-date freshness, expiry and continuation schedules, queue formats and PHP 7.4 support.
0.9.10
- Check complete managed Apache rule writes and preserve existing rules when publication fails.
- Report a saved setting separately from a failed rules update, including unchanged-setting retries.
- Keep SaveBar failure instructions visible and retryable in manual and automatic saves.
- Use the current plugin version for admin asset URLs so browsers load the updated save handling.
0.9.9
- Unreadable compressed entries now become cache misses, so a missing decoder or corrupt value triggers a fresh response instead of exposing compressed bytes. Healthy gzip/Brotli responses, ordinary strings, stored false and empty strings keep their existing behaviour.
- An unavailable root object class also becomes a cache miss. This does not validate every nested object graph.
- Compatibility checks cover PHP 8.6 and WordPress 7.1 while retaining PHP 7.4 support. Unit connection checks stay isolated from real Redis services.
0.9.8
- WooCommerce catalogue edits now recache what they change. Adding, renaming or deleting a product attribute, or changing one of its terms, recaches the whole site (every product, filter and comparison shows it); before, only the pages of the products you re-saved were refreshed, so a renamed attribute stayed on every other page until the cache was cleared by hand.
- With Composite Products, saving a product or variation (or a stock change) recaches every composite whose components offer it, including components that offer a whole category. Before, the composite's own page kept the old component options.
- These run in every request context, so wp-admin, REST and WP-CLI saves count.
aceredis_recache_on_edit still turns them off.
0.9.7
- WP-Cron runs keep what they write to the object cache. Cron used to count as an update operation, so every cron run ignored Redis and deleted each key it wrote instead of storing it: whatever a scheduled job cached was thrown away at once and rebuilt by the next visitor. Plugin and theme updates still bypass the cache.
0.9.6
- The background block render no longer holds the worker that asked for it. That worker used to wait up to 20 seconds for the render to finish; it now hands the request over and lets go after 3 seconds, and the render ignores the disconnect and finishes on its own. On a small PHP-FPM pool with slow page builds, the held workers queued visitors' cache hits behind them.
0.9.5
- Pages with live blocks are served before WordPress boots on cluster-mode servers too (ElastiCache Serverless, for one). The drop-in read each block's copies with one MGET, which such a server refuses when the keys hash to different slots, and they always do, so every such page went to WordPress there. The copies are now read with one GET per key in a single pipeline.
ACEREDIS_EARLY_REFRESH_ADDR (e.g. '127.0.0.1') sends the background block render straight to this web server. Without it the render goes out by the site's public name, which a CDN or WAF in front of the site may turn away.
0.9.4
- A page with a live block no longer makes the first visitor after the block's microcache copy expires wait for WordPress to boot. WordPress keeps an older copy of each live block as well (ten minutes by default, filter
aceredis_dynamic_stale_ttl); when only that one is left the page is served with it before WordPress boots, and once the visitor has their response the block is rendered again in the background. At most one background render per block every 20 seconds. Needs PHP-FPM and curl; without them, or with ACEREDIS_EARLY_STALE_BLOCKS defined false, such a request goes to WordPress as before.
0.9.3
- Pages with live blocks (a live scores ticker in the header, say) are served before WordPress boots whenever every live block has a microcache copy. The drop-in pastes the copies in itself, which was all a hit needed WordPress for, so these pages are as fresh as before without a full WordPress start. An expired copy still goes to WordPress, which renders the block and refills the microcache. On a site where the ticker is on every page, every hit used to boot WordPress.
- A page served before WordPress boots now sends the same browser cache headers as a WordPress hit (Cache-Control, Expires, Vary: Cookie) when the site has them switched on.
0.9.2
- With minification on, a page is stored once, as its minified copy. The original was also written beside it as a fallback that the read path only reached when the minified key was missing, and both expired together, so it was never served: it doubled every minifying site's page cache (half of one site's cache, 590 MB, on a full 3 GB Redis). An older original left from before the upgrade is removed when the page is next cached.
0.9.1
- Saving a post no longer flushes the whole object cache. The drop-in invalidates that post's own keys and the posts query stamp, and the broad page purge clears page and block caches only. Importers that save posts in a loop were moving the generation a dozen times a minute, dropping every transient each time and filling a shared Redis with dead generations. Sites that need the old flush can set ACEREDIS_OC_FLUSH_ON_POST_CHANGE or the aceredis_oc_flush_on_post_change filter; it is then held to one flush a minute per process, plus one at shutdown.
- Stale generations are purged a couple of minutes after a flush (at most once every ten minutes), not only daily.
- The stale purge reads the live generation from Redis instead of the process's memo, so a long cron run can no longer remove the current generation, and overlapping purges stand down.
0.9.0
- New setting, off by default: serve cached pages to logged-in users on the front end. Each group (administrators, editors, members who cannot edit, WooCommerce customers) has its own copy, apart from the guest copy; the toolbar is rendered fresh and every security token is swapped for the viewer's own on each hit. Previews, the Customizer, POST requests and ?aceredis_nocache=1 always bypass, a copy is served only while fresh, and purges drop every variant.
- New settings for signed-in object cache reads: signed-in front-end pages (on, as before) and wp-admin screens (off) read the shared object cache without writing to it; on WooCommerce sites, basket and checkout reads too.
- New wp-admin query cache, off by default: core's uncached admin reads (month filters, custom field keys, media checks) plus aceredis_admin_cache_remember() / aceredis_admin_cache_bump() for plugins.
0.8.16
- Clear retained query variants when a clean page or related archive is invalidated. Exact query URLs remain targeted.
- Bound the per-site path registry and refuse unindexed stores; retire older unindexed page entries without flushing object caches.
0.8.15
- Never cache password-protected posts or responses marked private/no-store/no-cache; track cached singular URL variants for immediate privacy-change invalidation. A new page-key policy retires older cached HTML without flushing Redis or object data.
- Preserve foreign cache drop-ins and symlinks; atomically update ARC-owned files and retry failed upgrades.
- Keep object-cache flushes and OPcache invalidation inside the site's own data and private code.
- Use WordPress-managed admin assets and the WordPress 6.9 template enhancement buffer.
- Validate admin requests, restore valid AJAX capability checks and restrict operational REST status to administrators.
- Start new installations with caching disabled until configured, and allow activation without Redis.
- Document external connections and compatibility; exclude standalone diagnostics from release packages.
0.8.14
- A maximum TTL now caps every object cache write, explicit expiries included: set, add, set_multiple, incr/decr and the shared transient path all store for at most the cap. The default is 86400 seconds, so a plugin's week-long transient lives for a day and cold keys stop crowding the working set out of a shared Redis. Set it per site with the Object Cache Max TTL setting (
object_cache_max_ttl, 0 turns it off, otherwise 60 to 2592000) or ACEREDIS_OC_MAX_TTL in wp-config, which wins. The generation counter key is exempt and keeps no TTL. - A matching Page Cache Max TTL setting (
page_cache_max_ttl) caps a page's Redis lifetime, fresh TTL plus stale-while-revalidate grace together. It is off (0) by default, since page TTLs are already short.
0.8.13
- Object cache keys written without an expiry now get a one day backstop TTL instead of seven days, so cold entries leave Redis within a day and the shared instance holds a smaller working set under its lower maxmemory.
0.8.12
- The object cache drop-in keys every value under a per-site generation number (
<namespace>v<gen>:), held in Redis at <namespace>gen. A flush, including the one on publish, is now a single INCR instead of a SCAN of the whole Redis database: old keys are unreachable at once and expire by their TTL. Keys written with no expiry get the 7 day backstop, and wp_cache_incr()/wp_cache_decr() now set it too. A daily aceredis_purge_stale_generations cron UNLINKs superseded keys early. If the generation key cannot be read the drop-in falls back to the old key format and the SCAN flush. The key format changes, so the first request after the update starts from an empty object cache.
0.8.11
- The stale-while-revalidate check on a cached page hit reads the stored time, the freshness marker and the soft-purge epoch in one MGET (it falls back to separate reads if a cluster endpoint refuses MGET across slots).
- New
page_cache_ttl_jitter setting (percent, 0 to 50, off by default) and aceredis_page_ttl_jitter filter: each stored page's fresh lifetime is cut by a random amount up to that percentage, so pages warmed together do not all refresh at once. - The object cache drop-in fingerprints values for change detection with xxh128 where PHP has it, md5 otherwise.
0.8.10
- Page invalidation builds each path's keys once (the legacy unversioned keys were listed twice) and sends them as single-key UNLINKs in one pipelined round trip. The object cache flush and group flush UNLINK what SCAN finds in pipelined batches of 500. Servers older than Redis 4 get DEL instead. Every command still names one key, so cluster endpoints never see CROSSSLOT.
0.8.9
- Recognise a basket page as a WooCommerce cart route in the page and object cache guards.
0.8.8
- Render normally when a Redis page-cache read fails, and avoid further page-cache reads or writes during that request.
0.8.6
- Crawler bypass: the
aceredis_crawler_bypass filter names search crawler user agents and the path prefixes where they are served live rather than from the page cache, in WordPress and in the pre-boot drop-in alike. Empty by default.
0.8.5