php/commands/src/CLI_Cache_Command.php
public function cache_clear() {
		$cache = WP_CLI::get_cache();

		if ( ! $cache->is_enabled() ) {
			WP_CLI::error( 'Cache directory does not exist.' );
		}

		$cache->clear();

		WP_CLI::success( 'Cache cleared.' );
	}
public function cache_clear() {
		$cache = WP_CLI::get_cache();

		if ( ! $cache->is_enabled() ) {
			WP_CLI::error( 'Cache directory does not exist.' );
		}

		$cache->clear();

		WP_CLI::success( 'Cache cleared.' );
	}
public function cache_clear ( ) { $ cache = WP_CLI :: get_cache ( ) ; if ( ! $ cache -> is_enabled ( ) ) { WP_CLI :: error ( 'Cache directory does not exist.' ) ; } $ cache -> clear ( ) ; WP_CLI :: success ( 'Cache cleared.' ) ; }
Clear the internal cache.

## EXAMPLES

$ wp cli cache clear
Success: Cache cleared.

@subcommand clear
Clear the internal cache .