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.
- wp cache status
- wp cache dropin:enable
- wp cache dropin:disable
- wp cache dropin:update
- wp cache flush
- wp cache flush:menucache
- wp cache flush:mocache
- wp cache flush:precache
- wp cache flush:transient
- wp cache flush:advcpost
- wp cache reset:lock
- wp cache reset:cron
- wp cache run:gc
- wp cache run:cron
- wp cache run:optimizedb
- wp cache run:stats
- wp cache runtime:install
- wp cache runtime:remove
Resetting cron event. Please wait..
+------------------------------------+---------------------+-----------------------+------------+
| hook | next_run_gmt | next_run_relative | recurrence |
+------------------------------------+---------------------+-----------------------+------------+
| docketcache_gc | 2020-12-08 16:58:36 | now | 5 minutes |
| docketcache_watchproc | 2020-12-08 16:58:36 | now | 1 hour |
| docketcache_checkversion | 2020-12-08 16:58:36 | now | 5 days |
+------------------------------------+---------------------+-----------------------+------------+
Success: Cron event has been reset.
Executing the garbage collector. Please wait..
-----------------------------------:----------
Cache MaxTTL : 345600
Cache File Limit : 50000
Cache Disk Limit : 500M
-----------------------------------:----------
Cleanup Cache MaxTTL : 0
Cleanup Cache File Limit : 0
Cleanup Cache Disk Limit : 0
-----------------------------------:----------
Total Cache Cleanup : 0
Total Cache Ignored : 0
Total Cache File : 1580
-----------------------------------:----------
Success: Executing the garbage collector completed.Executing the cron event. Please wait..
Executed the cron event 'docketcache_watchproc' in 0.011s.
Executed the cron event 'docketcache_gc' in 0.338s.
Executed the cron event 'wp_privacy_delete_old_export_files' in 0.011s.
Executed the cron event 'wp_version_check' in 6.804s.
Executed the cron event 'wp_update_plugins' in 2.817s.
Executed the cron event 'wp_update_themes' in 0.011s.
Executed the cron event 'recovery_mode_clean_expired_keys' in 0.005s.
Executed the cron event 'wp_scheduled_delete' in 0.005s.
Executed the cron event 'delete_expired_transients' in 0.005s.
Executed the cron event 'wp_scheduled_auto_draft_delete' in 0.007s.
Executed the cron event 'docketcache_checkversion' in 0.012s.
Executed the cron event 'wp_site_health_scheduled_check' in 0.091s.
Success: Executed a total of 12 cron events.Executing the cache stats. Please wait..
---------------:----------
Object size : 885K
File size : 992K
Total file : 66
---------------:----------
Success: Executing the cache stats completed.