WP-CLI
The command line interface for WordPress.
Updated: 03-Mar-2023 | v22.07.04
WP-CLI is the official command-line interface for WordPress. The Docket Cache extends the default wp cache
command with additional sub-commands.
The following commands are supported. You may use --verbose
on some commands to display more output.
wp cache status
Display the Docket Cache status.
Example output:
wp cache dropin:enable
Enable the Docket Cache object-cache.php
Drop-In file. The default behaviour is to create the object-cache.php Drop-In and replace any existing object-cache.php
Drop-In.
wp cache dropin:disable
Disable the Docket Cache object-cache.php Drop-In file. The default behaviour is to delete the object-cache.php
Drop-In unless an unknown object-cache.php
Drop-In is present.
wp cache dropin:update
Update the Docket Cache object-cache.php
Drop-In file. The default behaviour is to overwrite any existing object-cache.php
Drop-In.
wp cache flush
Remove the cache files.
wp cache flush:menucache
Remove the Menu cache files.
wp cache flush:mocache
Remove the Translation cache files.
wp cache flush:precache
Remove the Precache cache files.
wp cache flush:transient
Remove the Transients cache files.
wp cache flush:advcpost
Remove the Advanced Post Cache cache files.
Since version 22.07.04, this command is only available for WordPress version 6.1 and below.
wp cache reset:lock
Reset the Docket Cache lock files.
wp cache reset:cron
Reset the Docket Cache cron event.
Example output:
wp cache run:gc
Run the Docket Cache garbage collector (GC).
Example output:
wp cache run:cron
Run all cron event.
Example output:
wp cache run:optimizedb
Runs the Docket Cache Optimizedb.
wp cache run:stats
Run the Docket Cache stats function to collect cache data.
Example output:
wp cache runtime:install
Install the Docket Cache runtime code.
wp cache runtime:remove
Removes the Docket Cache runtime code.
Last updated