diff --git a/features/cache.feature b/features/cache.feature index 0626dfd5..8e21a820 100644 --- a/features/cache.feature +++ b/features/cache.feature @@ -192,13 +192,13 @@ Feature: Managed the WordPress object cache When I try `wp cache flush` Then STDERR should not contain: """ - Warning: Ignoring the --url= argument because flushing the cache affects all sites on a multisite installation. + Warning: Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache. """ When I try `wp cache flush --url=example.com` Then STDERR should contain: """ - Warning: Ignoring the --url= argument because flushing the cache affects all sites on a multisite installation. + Warning: Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache. """ @require-wp-6.1 diff --git a/src/Cache_Command.php b/src/Cache_Command.php index 80855441..9071cf34 100644 --- a/src/Cache_Command.php +++ b/src/Cache_Command.php @@ -157,7 +157,7 @@ public function delete( $args, $assoc_args ) { public function flush( $args, $assoc_args ) { if ( WP_CLI::has_config( 'url' ) && ! empty( WP_CLI::get_config()['url'] ) && is_multisite() ) { - WP_CLI::warning( 'Ignoring the --url= argument because flushing the cache affects all sites on a multisite installation.' ); + WP_CLI::warning( 'Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache.' ); } $value = wp_cache_flush();