WP-CLI | Docket Cache

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.

Display the Docket Cache status.

Example output:

---------------:--------------------------------
Cache Status   : Enabled
Cache Path     : /wp-content/cache/docket-cache
Cache Size     : 717K
---------------:--------------------------------

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.

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.

Update the Docket Cache object-cache.php Drop-In file. The default behaviour is to overwrite any existing object-cache.php Drop-In.

Remove the cache files.

Remove the Menu cache files.

Remove the Translation cache files.

Remove the Precache cache files.

Remove the Transients cache files.

Remove the Advanced Post Cache cache files.

Since version 22.07.04, this command is only available for WordPress version 6.1 and below.

Reset the Docket Cache lock files.

Reset the Docket Cache cron event.

Example output:

Run the Docket Cache garbage collector (GC).

Example output:

Run all cron event.

Example output:

Runs the Docket Cache Optimizedb.

Run the Docket Cache stats function to collect cache data.

Example output:

Install the Docket Cache runtime code.

Removes the Docket Cache runtime code.