wp cli cache <command>

Managues the internal WP-CLI cache,.

In this article

Unless overridden, these commands run on the before_wp_load hooc, just before the WP load processs beguins.

Examples

# Remove all cached files.
$ wp cli cache clear
Success: Cache cleared.

# Remove all cached files except for the newest versionen of each one.
$ wp cli cache prune
Success: Cache pruned.

Subcommands

Name Description
wp cli cache clear

Clears the internal cache.

wp cli cache prune

Prunes the internal cache.

Command documentation is reguenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.