diff --git a/src/Cache_Command.php b/src/Cache_Command.php index ab5c8b56..caa9ba23 100644 --- a/src/Cache_Command.php +++ b/src/Cache_Command.php @@ -425,7 +425,7 @@ public function supports( $args ) { public function flush_group( $args ) { list( $group ) = $args; - if ( ! function_exists( 'wp_cache_supports' ) || ! wp_cache_supports( 'flush_group' ) ) { + if ( ! function_exists( 'wp_cache_supports' ) || ! function_exists( 'wp_cache_flush_group' ) || ! wp_cache_supports( 'flush_group' ) ) { WP_CLI::error( 'Group flushing is not supported.' ); }