Redis Object Cache Setup in WordPress

How to Enable Redis Object Cache on a WordPress site

This guide covers the process of enabling Redis object caching for a cPanel user on a LiteSpeed web server. It includes enabling Redis via the LiteSpeed WHM plugin, verifying the service is running, and configuring the LiteSpeed Cache WordPress plugin to connect to it.


Prerequisites

  • LiteSpeed Web Server

  • Litespeed WHM Plugin

  • CloudLinux

  • PHP Redis extension enabled


Step 1: Navigate to Cache Redis for Users

  1. Login to WHM as root

  2. In the left navigation, go to LiteSpeed Web Server

  3. Click Cache Redis for Users


Step 2: Enable Redis for the Users

  1. Locate the cPanel username in the list

  2. In the Service MB column, the default is 64MB. Adjust if needed.

  3. Click the Setup Icon (Yellow Box)

  4. It may take a bit to install. Afterward, enable the Redis service on the user by clicking the grey cog.

  5. It should then be enabled with a green play icon


Step 2: Enable Redis Cache in LiteSpeed Cache Plugin

  1. Login to your WordPress admin dashboard

  2. Install LiteSpeed Cache Plugin

  3. Navigate to LiteSpeed Cache > Cache > Object

  4. Set the following settings and then save:

    1. Object Cache: ON

    2. Method: Redis

    3. Host: /tmp/redis.sock

    4. Port: 0

        1. If your Redis extension does not show as enabled, make sure to enable the extension first in your PHP.


Can't find what you're looking for?

Create or manage support tickets directly with Micron21

You will need to register a new account if this is the first time lodging a ticket.

If you have previous lodged a ticket either online, email or over the phone you will already have an account. Please reset your password, if you have not logged into the support portal before.

Lodge a ticket Manage existing tickets

Need to send us information securely? Use our Escrow service here

Need more advanced support?

Micron21 provides a comprehensive approach to customer care that starts with a base 24/7 support that is included free with every service we offer - there are no charges to enjoy a basic level of support with Micron21 and you are not restricted in how you contact us to receive assistance any time of day or night.

For those who require more advanced support though, our Customer Care plans and Ad-Hoc support are designed to completely remove the complexity of IT management - from taking full responsibility for your entire infrastructure or tailoring a custom approach, we have the capability and know-how.

 

If you've organised remote assistance from Micron21, click here to connect

w

Sign up for the Micron21 Newsletter