File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,13 @@ Feature: Managed the WordPress object cache
192
192
When I try `wp cache flush`
193
193
Then STDERR should not contain:
194
194
"""
195
- Warning: Ignoring the --url=<url> argument because flushing the cache affects all sites on a multisite installation.
195
+ Warning: Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache .
196
196
"""
197
197
198
198
When I try `wp cache flush --url=example.com`
199
199
Then STDERR should contain:
200
200
"""
201
- Warning: Ignoring the --url=<url> argument because flushing the cache affects all sites on a multisite installation.
201
+ Warning: Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache .
202
202
"""
203
203
204
204
@require-wp-6.1
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ public function delete( $args, $assoc_args ) {
157
157
public function flush ( $ args , $ assoc_args ) {
158
158
159
159
if ( WP_CLI ::has_config ( 'url ' ) && ! empty ( WP_CLI ::get_config ()['url ' ] ) && is_multisite () ) {
160
- WP_CLI ::warning ( 'Ignoring the --url=<url> argument because flushing the cache affects all sites on a multisite installation. ' );
160
+ WP_CLI ::warning ( 'Flushing the cache may affect all sites in a multisite installation, depending on the implementation of the object cache . ' );
161
161
}
162
162
163
163
$ value = wp_cache_flush ();
You can’t perform that action at this time.
0 commit comments