Are you tired of slow server responses on your WordPress website? If so, you may want to consider implementing object caching.
Object caching is a powerful technique that can greatly enhance the performance of your website by reducing database queries and speeding up page load times.
In this article, we’ll guide you through the process of setting up Object Cache Pro and provide you with the steps needed to configure it properly.
Let’s get started!
Why Should You Use Object Cache Pro?
Object Cache Pro is a business-class Redis object cache backend for WordPress that provides reliable, highly optimized, and fully customizable caching for your website. It’s optimized for WooCommerce, Jetpack, and Yoast SEO – making it an ideal solution for businesses.
Object Cache Pro seamlessly integrates with WordPress and offers deep insights via its Site Health integration, Query Monitor integration, and Debug Bar panels. Object Cache Pro offers faster binary serialization support, LZF, LZ4, and ZSTD compression, asynchronous flushing, batch key prefetching, batcache, and cache analytics.
How to Configure Object Cache Pro for WordPress on RunCloud
Before installing the plugin, we recommend configuring the license key to avoid any hiccups during the installation. The easiest way to do this is by editing the wp-config.php file on the RunCloud dashboard.
Open the wp-config.php file in the file manager and add the following code below the line that says ‘Add any custom values between this line and the “stop editing” line’. Don’t forget to replace the license key in the text snippet.
define('WP_REDIS_CONFIG', [ 'token' => '<your-license-token>', 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, // change for each site 'maxttl' => 86400, 'timeout' => 1.0, 'read_timeout' => 1.0, // 'prefetch' => true, // 'split_alloptions' => true, 'debug' => false, ]); define('WP_REDIS_DISABLED', false);
After you have added the file, you can browse the list of configurations to change any other settings that you like. Once you are satisfied with it, you can save and close the file.
After adding the license token, verify that Redis is running on your server. To do this, go to the Services menu and check the status, making sure it says “Running” next to Redis. If it’s stopped, you can just start it.
How to Install Object Cache Pro for WordPress
Once you have configured the settings, you can install the plugin by uploading the zip file. Go to your WordPress dashboard and open the plugins tab. Click on “Add Plugins” and select “Upload Plugin”, then locate the zip file and install it.
After installation, click on the “Activate Plugin” to enable it.
Go to the plugins menu and click on “View Details” next to Object Cache Pro – a modal will appear with information about the plugin. Make sure it says “Latest Version Installed” on the bottom right. If you’re using an older version, simply update it.
After this, enable auto-updates to automatically update the plugin when a new update is released.
After installing the plugin, you can open the plugin settings to check if everything is working correctly. You should see “Status: Connected” in the widget on your Dashboard. If not, head to Tools > Site Health for more information.
After Action Report
Object Cache Pro can greatly enhance the performance and speed of your WordPress website by reducing the database load and server response time. The step-by-step guide provided in this article should help you successfully set up object caching on your WordPress website.
If you find this guide useful, you should also read:
- What Is RunCache
- How To Use Redis Full-Page Cache To Speed Up Your WordPress Performance
- NGINX Caching Tutorial for WordPress
If you are looking for an easy-to-use platform to manage your server and save time and resources, give your website the best chance to shine by signing up for RunCloud.