Skip to content

Commit

Permalink
Merge pull request #825 from Automattic/cache-purge-message
Browse files Browse the repository at this point in the history
Additional messaging around cache purges
  • Loading branch information
simonwheatley authored Jan 30, 2018
2 parents 6d9c735 + 6d70abc commit 1ebdd40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-cli/vip-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ function purge( $args, $assoc_args ) {
// This sets up the URL/regex to be banned. There's no need to manually
// execute a purge since it is handled automatically on the `shutdown` hook.
WPCOM_VIP_Cache_Manager::instance()->purge_site_cache();
if ( defined( 'WPCOM_SANDBOXED' ) && WPCOM_SANDBOXED ) {
WP_CLI::line( 'Because you are sandboxed this has only purged the Varnish cache on your sandbox host, un-sandbox and use the button in the site admin area if you need to purge the VIP Go edge cache.' );
}
WP_CLI::success( 'Varnish cache purged!' );
}
}
Expand Down

0 comments on commit 1ebdd40

Please sign in to comment.