Configuration

Docket Cache uses constants variable as main configuration methods.

Constants are like variables except that once they are defined they cannot be changed or undefined. To change the behaviour of Docket Cache, the following PHP constants can be defined in your wp-config.php file.

DOCKET_CACHE_MAXTTL

Cache file lifespan in seconds. Only numbers between 86400 and 2419200 are accepted Default: 4 days = 345600 seconds

define('DOCKET_CACHE_MAXTTL', 345600);

DOCKET_CACHE_MAXSIZE

Set the maximum size of the cache file in bytes. Default: 3MB. 1MB = 1048576 bytes

define('DOCKET_CACHE_MAXSIZE', 3145728);

DOCKET_CACHE_MAXSIZE_DISK

Set the maximum size of the cache file stored on disk. Default: 500MB = 524288000

define('DOCKET_CACHE_MAXSIZE_DISK', 524288000);

DOCKET_CACHE_MAXFILE

Cache maximum accelerated files. Only numbers between 200 and 200000 are accepted. Default: 5000

define('DOCKET_CACHE_MAXFILE', 5000);

DOCKET_CACHE_PATH

Set the cache directory. Default:

define('DOCKET_CACHE_PATH', WP_CONTENT_DIR.'/cache/docket-cache');

DOCKET_CACHE_FLUSH_DELETE

By default Docket Cache only empty the cache file. Set to true to delete the cache file when flushed. Default:

define('DOCKET_CACHE_FLUSH_DELETE', false);

DOCKET_CACHE_GLOBAL_GROUPS

Lists of cache groups that share a cache with other sites in a Multisite setup. Default:

define('DOCKET_CACHE_GLOBAL_GROUPS',
[
'blog-details',
'blog-id-cache',
'blog-lookup',
'global-posts',
'networks',
'rss',
'sites',
'site-details',
'site-lookup',
'site-options',
'site-transient',
'users',
'useremail',
'userlogins',
'usermeta',
'user_meta',
'userslugs'
]
);

DOCKET_CACHE_IGNORED_GROUPS

List of cache groups that should not be cached. Default:

define('DOCKET_CACHE_IGNORED_GROUPS',
[
'counts',
'plugins',
'themes'
]
);

DOCKET_CACHE_LOG

Set to true or false to enable or disable cache log. Default:

define('DOCKET_CACHE_LOG', false);

The cache log intended to provide information on how the cache works. For performance and security concerns, deactivate if no longer needed.

DOCKET_CACHE_LOG_FILE

Set the log file. Default:

define('DOCKET_CACHE_LOG_FILE', WP_CONTENT_DIR.'/.object-cache.log');

DOCKET_CACHE_LOG_TIME

Set the log time format. Available options utc, local, wp. Default:

define('DOCKET_CACHE_LOG_TIME', 'utc');

DOCKET_CACHE_LOG_FLUSH

Set to true to empty the log file when the object cache is flushed. Default:

define('DOCKET_CACHE_LOG_FLUSH', true);

DOCKET_CACHE_LOG_SIZE

Set the maximum size of a log file in bytes. Default: 10MB. 1MB = 1048576 bytes

define('DOCKET_CACHE_LOG_SIZE', 10485760);

DOCKET_CACHE_LOG_ALL

By default, docket cache excludes his cached process if WP_DEBUG not defined to true. Set to true or false to enable or disable to log all caches. Default:

define('DOCKET_CACHE_LOG_ALL', false);

DOCKET_CACHE_ADVCPOST

Set to true or false to enable or disable Advanced Post Cache features. Default:

define('DOCKET_CACHE_ADVCPOST', true);

DOCKET_CACHE_CRONOPTMZDB

Enable Database Tables optimization. Available options: never, daily, weekly, monthly. Default:

define('DOCKET_CACHE_CRONOPTMZDB', 'never');

DOCKET_CACHE_WPOPTALOAD

Set to true or false to enable or disable Suspend WP Options Autoload features. Default:

define('DOCKET_CACHE_WPOPTALOAD', false);

DOCKET_CACHE_MISC_TWEAKS

Set to true or false to enable or disable miscellaneous WordPress performance tweaks. Default:

define('DOCKET_CACHE_MISC_TWEAKS', true);

DOCKET_CACHE_WOOTWEAKS

Set to true or false to enable or disable miscellaneous WooCommerce tweaks. Default:

define('DOCKET_CACHE_WOOTWEAKS', true);

DOCKET_CACHE_POSTMISSEDSCHEDULE

Set to true or false to enable or disable Post Missed Schedule Tweaks features. Default:

define('DOCKET_CACHE_POSTMISSEDSCHEDULE', false);

DOCKET_CACHE_OPTERMCOUNT

Set to true or false to enable or disable Term Count Queries optimization features. Default:

define('DOCKET_CACHE_OPTERMCOUNT', true);

DOCKET_CACHE_OPTWPQUERY

Set to true or false to enable or disable WordPress Core Query optimization features. Default:

define('DOCKET_CACHE_OPTWPQUERY', true);

DOCKET_CACHE_MOCACHE

Set to true or false to enable or disable WordPress Translation Caching features. Default:

define('DOCKET_CACHE_MOCACHE', false);

DOCKET_CACHE_SIGNATURE

Set to true or false to enable or disable Docket Cache signature at HTML footer and Server Header. Default:

define('DOCKET_CACHE_SIGNATURE', true);

DOCKET_CACHE_PRECACHE

Set to true or false to enable or disable Object Cache Precaching features. Default:

define('DOCKET_CACHE_PRECACHE', true);

DOCKET_CACHE_PRELOAD

Set to true or false to enable or disable cache preloading. If set to true, this plugin will fetch predefined URL related to the admin page. Default:

define('DOCKET_CACHE_PRELOAD', false);

DOCKET_CACHE_PAGELOADER

Set to true or false to enable or disable Admin Page Loader features. Default:

define('DOCKET_CACHE_PAGELOADER', true);

DOCKET_CACHE_CRONBOT

The Cronbot is an external service that pings your website every hour to keep WordPress Cron running actively. Only site Timezone, URL and version are involved when enabling this service.

Set to true or false to enable or disable Cronbot Service. Default:

define('DOCKET_CACHE_CRONBOT', false);

DOCKET_CACHE_CRONBOT_MAX

Maximum sites allowed in multisite. Default:

define('DOCKET_CACHE_CRONBOT_MAX', 10);

DOCKET_CACHE_AUTOUPDATE

Set to true or false to enable or disable plugin auto-update. Default:

define('DOCKET_CACHE_AUTOUPDATE', true);

DOCKET_CACHE_CHECKVERSION

The Check Version allows this plugin to check any critical future version that requires removing cache files before doing the updates, purposely to avoid any error-prone.

Set to true or false to enable or disable critical version checking. Default:

define('DOCKET_CACHE_CHECKVERSION', true);

DOCKET_CACHE_STATS

Set to true or false to enable or disable object cache data stats at Overview page. Default:

define('DOCKET_CACHE_STATS', true);

DOCKET_CACHE_DISABLED

Set to true to disable the object cache at runtime. No persistent cached objects at this time. Default:

define('DOCKET_CACHE_DISABLED', false);