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. Redis Object Cache is available on DreamPress Pro plans. You can also install this manually on a Dedicated Server or DreamCompute as those plans allow sudo access. For more information about Redis Object Cache, visit the following article:
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:
- Log in to your WordPress site.
- Navigate to the Plugins > Add New.
- Search for the Docket Cache — Object Cache Accelerator plugin.
- 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.
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:
- Add the following line in your site's wp-config.php file to disable this option:
define('DOCKET_CACHE_PINGBACK', false);
- Navigate to Docket Cache > Configuration > WP TWEAKS.
- 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:
- Add the following line in your site's wp-config.php file to disable this option:
define('DOCKET_CACHE_CRONBOT', false);
- 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.
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.