New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

How do I use Redis Object Caching on my WordPress site if I don't use LSCache?

Litespeed Cache is strongly recommended as an alternative to other caching plugins and has been benchmarked to offer far superior performance due to its native ability to work with our Litespeed Enterprise web servers. However, if you are using any other plugin for caching that doesn't offer native Object Cache support, it's still possible to integrate with Redis using the 'Redis Object Cache' plugin.

To install the 'Redis Object Cache' plugin for WordPress, follow these steps:

  1. Log in to your WordPress admin dashboard.
  2. Navigate to the 'Plugins' section by clicking on 'Plugins' in the left-hand menu.
  3. Click on the 'Add New' button at the top of the page.
  4. In the search bar, type 'Redis Object Cache' and press Enter.
  5. Look for the 'Redis Object Cache' plugin by Till Krüss in the search results.
  6. Click the 'Install Now' button next to the plugin.
  7. After the installation is complete, click the 'Activate' button to enable the plugin on your WordPress site.


Now that the plugin is installed and activated, you'll need to enable the Redis socket via the Redis section of cPanel... 

Once within the Redis tool enable it for your account:

8cea05af98a43f0ae14f1ef06fc27e22dd68a930d4ae0d0550f29e5bfe225636de4efc900010fd69?t=863f5880e4b5789faca0c029876d7b87

 

Once enabled, copy the Redis socket path, as we will need this later! You can always return to this screen if you need to view this again.

Now we need to enable the Redis extension; this is enabled under cPanel -> Select PHP Version -> Extensions -> Redis

b90d43596909da08e36709a186a4d99f9578bdc66c286b49382c58e3129ce2e21a199104b5668f0a?t=e7642b817c8d3451f2dde2bec551188f

Lastly, the plugin doesn't allow you to define a socket path within the interface, so we have to add the following lines to your wp-config.php file, ensuring the path is correct as per the Redis screen in cPanel...

define('WP_REDIS_PATH', '/home/WebGeemonitoring/tmp/redis.sock');
define('WP_REDIS_SCHEME', 'unix');

 Once done, click 'Enable Object Cache' in the Redis WordPress Plugin...0441a58bf5be1493e0228d84826847e474d075a662d3ac1103147eab48a37dfbd9eb6110475cf00e?t=96fb6f4421c200496edc90ce8cb2ab59

If this has been done correctly, you should see something similar to the following...8507db23effb8cb49070e7486fca0a3bec2500a38943bf4c603925933e64eeaa1cfefff4c2512871?t=f4a45d1212a8d25458b81b35acf4f1dc



  • 241 Users Found This Useful
Was this answer helpful?

Related Articles

 Connect to your server via SSH

SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is...

 How to force your site to use SSL (HTTPS) using

First of all, you will need to install an SSL certificate to your siteOnce your certificate is...

 How do I change PHP versions, or change my PHP settings / config?

The process of setting your PHP version and the 'variables' (such as memory_limit values) differs...

 How do I install a free SSL via cPanel?

Installing an SSL certificate in cPanel is easy! Best of all, it's free with WebGee!Important:...

 How to send emails in WordPress using the WP SMTP Mail plugin

Instead of using the default PHP mail() function, you can send emails using our SMTP services via...

Powered by WHMCompleteSolution