Skip to content

Commit b4726ce

Browse files
authored
Update warning text during multisite cache flushes (#88)
1 parent 46fa2e1 commit b4726ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

features/cache.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ Feature: Managed the WordPress object cache
192192
When I try `wp cache flush`
193193
Then STDERR should not contain:
194194
"""
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.
196196
"""
197197

198198
When I try `wp cache flush --url=example.com`
199199
Then STDERR should contain:
200200
"""
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.
202202
"""
203203

204204
@require-wp-6.1

src/Cache_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function delete( $args, $assoc_args ) {
157157
public function flush( $args, $assoc_args ) {
158158

159159
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.' );
161161
}
162162

163163
$value = wp_cache_flush();

0 commit comments

Comments
 (0)