From 7ae7ac0b45abb3f863569fb8012acb0629de8bc3 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 24 Nov 2026 09:16:58 -0500 Subject: [PATCH] Acorn: document `cache:clear` on multisite Co-Authored-By: Claude Opus 5.5 --- ...aravel-cache-alternative-to-wordpress-transients.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/acorn/laravel-cache-alternative-to-wordpress-transients.md b/acorn/laravel-cache-alternative-to-wordpress-transients.md index 2e7c0ad3..4292ceb3 100644 --- a/acorn/laravel-cache-alternative-to-wordpress-transients.md +++ b/acorn/laravel-cache-alternative-to-wordpress-transients.md @@ -46,3 +46,13 @@ You can also use Acorn's WP-CLI integration to interact with the cache: ```shell $ wp acorn cache:clear ``` + +::: tip +On multisite, each site gets its own file cache, so `cache:clear` only clears the current site. Use `--url` to target a site, or loop over all of them: + +```shell +$ wp site list --field=url | xargs -I{} wp acorn cache:clear --url={} +``` + +Redis, database, and Memcached stores are cleared for the whole network. If Acorn shares a Redis database with your object cache, `cache:clear` flushes that too, so give Acorn its own database. +:::