Docket Cache
Search…
WP-CLI
The command line interface for WordPress.
Updated: 08-Dec-2020 | Version: >= 20.11.01
WP-CLI is the official command-line interface for WordPress. The Docket Cache extends default wp cache command with additional sub-commands.
The following command supported.

wp cache status

Display the Docket Cache status.
1
wp cache status
Copied!
Example output:
1
Cache Status : Enabled
2
Cache Path : /wp-content/cache/docket-cache
3
Cache Size : 3M
Copied!

wp cache dropin:enable

Enable the Docket Cache Drop-In file. The default behaviour is to create the object cache Drop-In and replace any object cache Drop-In is present.
1
wp cache dropin:enable
Copied!

wp cache dropin:disable

Disable the Docket Cache Drop-In file. The default behaviour is to delete the object cache Drop-In unless an unknown object cache Drop-In is present.
1
wp cache dropin:disable
Copied!

wp cache dropin:update

Update the Docket Cache Drop-In file. The default behaviour is to overwrite any existing object cache Drop-In.
1
wp cache update
Copied!

wp cache flush

Remove the cache files.
1
wp cache flush
Copied!

wp cache flush:precache

Remove the precache files.
1
wp cache flush:precache
Copied!

wp cache reset:lock

Reset the Docket Cache lock files.
1
wp cache reset:lock
Copied!

wp cache reset:cron

Reset the Docket Cache cron event.
1
wp cache reset:cron
Copied!
Example output:
1
Resetting cron event. Please wait..
2
+------------------------------------+---------------------+-----------------------+------------+
3
| hook | next_run_gmt | next_run_relative | recurrence |
4
+------------------------------------+---------------------+-----------------------+------------+
5
| docketcache_gc | 2020-12-08 16:58:36 | now | 5 minutes |
6
| docketcache_watchproc | 2020-12-08 16:58:36 | now | 1 hour |
7
| docketcache_checkversion | 2020-12-08 16:58:36 | now | 5 days |
8
+------------------------------------+---------------------+-----------------------+------------+
9
Success: Cron event has been reset.
10
Copied!

wp cache run:gc

Run the Docket Cache garbage collector (GC).
1
wp cache run:gc
Copied!
Example output:
1
Executing the garbage collector. Please wait..
2
-----------------------------------:----------
3
Cache MaxTTL : 345600
4
Cache File Limit : 50000
5
Cache Disk Limit : 500M
6
-----------------------------------:----------
7
Cleanup Cache MaxTTL : 0
8
Cleanup Cache File Limit : 0
9
Cleanup Cache Disk Limit : 0
10
-----------------------------------:----------
11
Total Cache Cleanup : 0
12
Total Cache Ignored : 0
13
Total Cache File : 1580
14
-----------------------------------:----------
15
Success: Executing the garbage collector completed.
Copied!

wp cache run:cron

Run all cron event.
1
wp cache run:cron
Copied!
Example output:
1
Executing the cron event. Please wait..
2
Executed the cron event 'docketcache_watchproc' in 0.011s.
3
Executed the cron event 'docketcache_gc' in 0.338s.
4
Executed the cron event 'wp_privacy_delete_old_export_files' in 0.011s.
5
Executed the cron event 'wp_version_check' in 6.804s.
6
Executed the cron event 'wp_update_plugins' in 2.817s.
7
Executed the cron event 'wp_update_themes' in 0.011s.
8
Executed the cron event 'recovery_mode_clean_expired_keys' in 0.005s.
9
Executed the cron event 'wp_scheduled_delete' in 0.005s.
10
Executed the cron event 'delete_expired_transients' in 0.005s.
11
Executed the cron event 'wp_scheduled_auto_draft_delete' in 0.007s.
12
Executed the cron event 'docketcache_checkversion' in 0.012s.
13
Executed the cron event 'wp_site_health_scheduled_check' in 0.091s.
14
Success: Executed a total of 12 cron events.
Copied!

wp cache run:stats

Run the Docket Cache stats function to collect cache data.
1
wp cache run:stats
Copied!
Example output:
1
Executing the cache stats. Please wait..
2
Object size : 3M
3
File size : 4M
4
Total file : 1578
5
Success: Executing the cache stats completed.
Copied!
Last modified 10mo ago