Using the Docket Cache plugin

Overview

As part of the WordPress 6.1 release, the WordPress Performance Team has added two Site Health checks:

The new Site Health checks first determine if the site is using a Persistent Object Cache. If a certain site resource threshold is met, you may see a notice suggesting that a Persistent Object Cache be enabled. View the following WordPress article for more information:

This article describes various resources you can use to enable object caching, including the Docket Cache — Object Cache Accelerator plugin.

Object caching alternatives

Object Caching alternatives such as Redis or Memcached can be used instead, however, a Dedicated server with an admin user is required.  For example, the following article explains how to install Memcached on a Dedicated server:

Installing the 'Docket Cache — Object Cache Accelerator' plugin

You can also utilize a filesystem level Object Cache instead of using a service like Redis or Memcached.

With WordPress, exporting the PHP objects is an advanced step, as most plugins that implement file-based solutions will serialize and unserialize the object to store and retrieve the data. The Docket Cache — Object Cache Accelerator plugin can help you accomplish this.

To install the plugin:

  1. Log in to your WordPress site.
    wp-admin-docket-cache-object-cache-accelerator-plugin-01.png
  2. Navigate to the Plugins > Add New.
  3. Search for the Docket Cache — Object Cache Accelerator plugin.
  4. Install and activate the plugin.

Using the 'Docket Cache — Object Cache Accelerator' plugin

The Docket Cache — Object Cache Accelerator plugin automatically implements Object Cache after it's activated. There are also a few key features and requirements to be aware of when using the plugin as described below.

Jetpack

The Docket Cache — Object Cache Accelerator plugin provides an optimization feature called Deactivate XML-RPC / Pingbacks that is enabled by default.

Jetpack needs the xmlrpc.php file to be accessible or it won't be able to connect to your WordPress site.

wp-admin-docket-cache-object-cache-accelerator-plugin-02.png

If Jetpack cannot connect to your WordPress site

Proceed with the following two steps to disable this option if Jetpack is not able to connect to your WordPress site:

  1. Add the following line in your site's wp-config.php file to disable this option:
    define('DOCKET_CACHE_PINGBACK', false);
  2. Navigate to Docket Cache > Configuration > WP TWEAKS.
  3. Toggle the Deactivate XML-RPC / Pingbacks setting to Disable.

OPcache

One of the server requirements for the Docket Cache — Object Cache Accelerator plugin is the PHP module OPcache. Depending on your hosting plan, you may need to manually enable this:

Shared Hosting and DreamPress plans

This is enabled by default on Shared Hosting and DreamPress hosting plans.

VPS and Dedicated hosting plans

This option must be enabled manually in your DreamHost panel for VPS and Dedicated hosting plans. View the following article for instructions on how to enable OPcache:

Cronbot service

Cronbot is an external service that pings your website every hour to keep the WordPress Cron service running. This is enabled by default, however, DreamHost does NOT recommend using this feature.

Disable WP-CRON and create a Cron Job in your panel

It's recommended that you disable WP-CRON, then configure a Cron Job in your DreamHost panel. View the following article for instructions on how to disable WP-CRON:

Disable Cronbot

Proceed with the following two steps to disable this service:

  1. Add the following line in your site's wp-config.php file to disable this option:
    define('DOCKET_CACHE_CRONBOT', false);
  2. Toggle this setting by navigating to Docket Cache > Configuration > FEATURE OPTIONS.

Flushing cache

When making changes and updates to your WordPress site, you should purge the cache so that changes can be displayed publicly on the site.

You can purge the cache within the Docket Cache — Object Cache Accelerator plugin by navigating to the Overview tab and clicking the Flush Object Cache and Flush OPcache buttons.

If you have a separate caching plugin, or if your theme has its own caching feature, they must be purged separately.

wp-admin-docket-cache-object-cache-accelerator-plugin-03.png

For more information

Docket Cache also provides numerous features that are helpful for general WordPress management. These features are not exclusive to caching and are helpful for general troubleshooting, testing, and WordPress management. View the following link for further information.

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?