Skip to content

Clarify "please flush object cache" message in multisite to mention cached lookup value#21

Merged
danielbachhuber merged 5 commits into
wp-cli:masterfrom
Sidsector9:feature/GH#12
Aug 8, 2017
Merged

Clarify "please flush object cache" message in multisite to mention cached lookup value#21
danielbachhuber merged 5 commits into
wp-cli:masterfrom
Sidsector9:feature/GH#12

Conversation

@Sidsector9
Copy link
Copy Markdown
Member

@Sidsector9 Sidsector9 commented Aug 4, 2017

Fixes #12

Comment thread src/Search_Replace_Command.php Outdated
$success_message = "Made $total replacements.";
if ( $total && 'Default' !== WP_CLI\Utils\wp_get_cache_type() ) {
$success_message .= ' Please remember to flush your persistent object cache with `wp cache flush`.';
$success_message .= ' Please remember to flush your persistent object cache with `wp cache flush`. If you see a "Site not found" error after replacing a domain, try flushing cache against the old domain (which may be the cached lookup value).';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "If you see..." clarification should only be included when is_multisite() is true, because it's not applicable for single site.

Copy link
Copy Markdown
Member

@schlessera schlessera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sidsector9 Instead of having the first sentence twice, you should add the first sentence without a conditional, and then add the second sentence for is_multisite().

@Sidsector9
Copy link
Copy Markdown
Member Author

@schlessera You're right, I missed it! Changes made.

Comment thread src/Search_Replace_Command.php Outdated
$success_message = "Made $total replacements.";
if ( $total && 'Default' !== WP_CLI\Utils\wp_get_cache_type() ) {
$success_message .= ' Please remember to flush your persistent object cache with `wp cache flush`.';
$success_message .= ' Please remember to flush your persistent object cache with `wp cache flush`.';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is off here.

@danielbachhuber danielbachhuber added command:search-replace Related to 'search-replace' command scope:documentation Related to documentation labels Aug 8, 2017
@danielbachhuber danielbachhuber added this to the 1.0.4 milestone Aug 8, 2017
@danielbachhuber danielbachhuber changed the title GH#12 Clarification message Clarify "please flush object cache" message in multisite to mention cached lookup value Aug 8, 2017
@danielbachhuber danielbachhuber merged commit 3e7499a into wp-cli:master Aug 8, 2017
danielbachhuber added a commit that referenced this pull request Nov 18, 2022
Clarify "please flush object cache" message in multisite to mention cached lookup value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:search-replace Related to 'search-replace' command scope:documentation Related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants