Skip to content
Blog

Must-use plugin 1.9.0 brings smarter cache purging

Version 1.9.0 of the WP Waterfall must-use plugin brings smarter cache purging: stock changes, options pages, and paged archives now clear the right pages.

The WP Waterfall team · Announcements

Version 1.9.0 of our must-use plugin is rolling out to every site. A must-use plugin is one WordPress loads on every request without anyone activating it. Ours lives outside your code and updates on its own, so there is nothing to install. This release is about smarter cache purging: making the page cache clear the right pages at the right moment, without you pressing anything.

What changed in cache purging

The page cache keeps a finished copy of each page. When content changes, the plugin deletes the copies that changed. Before 1.9.0 that meant posts, comments, terms, menus, and widgets. 1.9.0 adds the changes that happen outside a post save:

  • WooCommerce stock. A stock or stock status change purges the product's page. A variation purges its parent. Sold out shows as sold out.
  • ACF options pages. Saving an options page purges everything, because its fields can appear anywhere.
  • Elementor. Clearing Elementor's cache or switching its maintenance mode purges everything.
  • Site options that show on every page. The site title, tagline, date and time formats, language, time zone, permalinks, front page settings, posts per page, and comment settings purge everything when they change.
  • Duplicate Post. A "rewrite and republish" purges the original.
  • Paged archives. Each listing purges its /page/2/, /page/3/, and so on as one group, so the second page of your blog never goes stale while the first one updates.

One more: wp cache flush now clears every cache, so a command you already run after a deploy does the whole job.

Each purge lists the pages it cleared and the change that caused it.

What stayed the same

Purges are still measured. One purge per request, archive purges at most once every 10 seconds, and a held archive purge goes out with the next allowed one or within about a minute. The edge copies at Cloudflare wait for the same moment as the origin copies, so the edge never refetches a stale page in between. In a web request the purge runs after the response is sent, so a save returns at once.

Enable Autopurge, on by default under Tools, then WP Waterfall Cache, gates all of it. Turn it off and no content change purges anything.

Who it is for and what it costs

Every site gets it, at no cost. It matters most to stores, to sites built with ACF or Elementor, and to blogs with long archives. If a trigger gets in the way, a filter turns one off:

// Keep the cache after a stock change, for a store that purges on its own.
add_filter( 'wpwaterfall_autopurge_trigger', function ( $enabled, $trigger ) {
    return 'woocommerce' === $trigger ? false : $enabled;
}, 10, 2 );
A stock change purges the product page, and the rest of the store stays cached.

How to turn it on

You do not. The plugin reaches every site on its own, and Enable Autopurge is already on. The clear buttons and the admin bar menu are described in Clear all caches.

What to do next

Nothing, for most sites. If you have a WP-CLI step after deploy that purges paths one by one, replace it with wp cache flush and delete the list.

Read next

Try what you just read about.

See it in your own dashboard.