mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-05-06 11:33:51 +08:00
19 lines
390 B
Markdown
19 lines
390 B
Markdown
# wp cli cache
|
|
|
|
Manages the internal WP-CLI cache,.
|
|
|
|
Unless overridden, these commands run on the `before_wp_load` hook, just before the WP load process begins.
|
|
|
|
### EXAMPLES
|
|
|
|
# Remove all cached files.
|
|
$ wp cli cache clear
|
|
Success: Cache cleared.
|
|
|
|
# Remove all cached files except for the newest version of each one.
|
|
$ wp cli cache prune
|
|
Success: Cache pruned.
|
|
|
|
|
|
|
|
|