How to Enable Redis on LiteSpeed Cache Plugin in WordPress

affiliate disclosure

Disclosure: WPrBlogger is reader-supported. We may earn a commission if you purchase through our links at no extra cost to you.

If you want to speed up your WordPress site beyond basic page caching, enabling Redis object cache is one of the most effective upgrades you can make.

When you enable Redis object cache in WordPress, your site stores frequently requested database queries in memory instead of repeatedly querying MySQL. This reduces server load, improves backend performance, and makes dynamic sites like WooCommerce or membership platforms feel much faster.

In this guide, I’ll show you exactly how to enable Redis on LiteSpeed Cache plugin, how to configure it correctly, and how to confirm it’s working using the current LiteSpeed Cache interface.

This tutorial assumes you’re using the LiteSpeed Cache plugin on a LiteSpeed server with cPanel access.

What is Redis Object Cache?

Redis is an in-memory data store. Instead of repeatedly querying the WordPress database to retrieve data requests, Redis stores frequently accessed data in memory (RAM). 

When WordPress needs that data again, it pulls it instantly from memory rather than re-running database queries. The result? Faster response times, reduced database load, and a smoother experience for your visitors.

On high-traffic sites, repeated queries can slow your site and put strain on your server. Redis solves this problem by storing frequently accessed data in memory, allowing WordPress to pull results instantly rather than querying the database repeatedly. 

This makes your site faster, reduces server load, and keeps wp-admin responsive.

When you combine Redis with the LiteSpeed Web Server and the LiteSpeed Cache plugin, you get a powerful performance setup:

  • Page caching for static content
  • Object caching with Redis for dynamic database queries
  • Better backend speed in wp-admin
  • Improved performance for WooCommerce and membership sites

What You Need Before You Enable Redis in LiteSpeed Cache

Before configuring Redis in WordPress, make sure your hosting environment supports it. Redis runs at the server level, so if it isn’t active, the LiteSpeed Cache plugin cannot connect, and enabling object caching inside WordPress will fail. 

Most managed WordPress hosts, VPS, and cloud servers support Redis, though shared hosting may require confirmation. Check your hosting dashboard or ask support to ensure Redis is available.

The LiteSpeed Cache plugin works best on servers running LiteSpeed Web Server or OpenLiteSpeed, though Redis can technically work on other servers. You must confirm your server type to ensure compatibility and the required steps to enable it.

WordPress also requires the PHP Redis extension. Without it, attempts to enable Redis object cache in WordPress will fail. You can enable this in cPanel under Select PHP Version > Extensions.

Finally, make sure the LiteSpeed Cache plugin is installed and activated in WordPress, and keep your Redis connection details handy (host, port, database ID, and password if applicable) for configuration in the plugin.

You’ll find this setting in your cPanel dashboard. 

Now, let’s get into the complete steps to activate Redis in WordPress in the LiteSpeed Cache plugin. 

Step 1 — Enable Redis at the Server Level

As mentioned earlier, before WordPress can use Redis, the Redis service must be active on your server. Think of it like turning on a light before you can see anything. If Redis isn’t running, the LiteSpeed Cache plugin cannot connect.

Since you’re using LiteSpeed Server with cPanel, start by logging into your cPanel dashboard. Look for Redis Manager in the main cPanel interface under the “Software” section. This tool allows you to start, stop, and configure Redis.

cPanel software interface featuring Redis icon among other web management tools.

Once inside Redis Manager, if Redis isn’t running, click Enable or Start Redis. After a few seconds, the status should indicate that Redis is active. 

cPanel Redis Server interface showing running status with a red arrow pointing to the status indicator.

Note the host, port, password, or UNIX socket path provided. These details are critical for Step 2.

Before moving to your WordPress site, confirm Redis is running. Check the running status in the Redis Manager interface, as shown in the image above, or verify with your host.

Even though Redis is active at the server level, WordPress cannot use it until you configure the plugin with the correct connection details.

However, some web hosts do not enable Redis services on the server by default, but you might see it in the PHP extension module list.

cPanel PHP extension list with a red arrow pointing to an unchecked redis checkbox.

If you enable the Redis PHP extension, this does not activate the Redis service on the server. It only lets WordPress and PHP communicate with Redis. But since the service is not available on your server, the “Connection Test” will fail in the LiteSpeed Cache plugin.

Object Cache settings screen in a WordPress plugin showing enabled Redis extension with a failed connection test.

You will need to reach out to your web host and ask if the Redis service is supported. Some web host, such as Namecheap, don’t support Redis on their shared hosting plans.

To be sure, I contacted the Nameheap support for confirmation, because I have some sites hosted on their shared hosting plans. Below is the support response.

Namecheap support chat box stating Stellar shared hosting plans do not support Redis.

So, if you’re thinking of using a server-side database object cache like Redis or Memcached on your hosting, you need to ask questions before subscribing to a hosting plan.

Verpex is one of the shared hosts I know that has Redis service enabled by default on its server. You just need to start the service and follow the rest of the connection process in this guide.

Step 2 — Configure Redis in the LiteSpeed Cache Plugin

After confirming the Redis service is running on the server, it’s time to connect it to WordPress. Log in to your WordPress dashboard and navigate to LiteSpeed Cache > Cache > Object. The Object Cache tab controls Redis and Memcached connections.

However, in this tutorial on enabling Redis object cache on the LiteSpeed Cache for WordPress (LSCWP), the focus is on Redis connection. So, click the toggle to turn Object Cache ON in LiteSpeed Cache.

Additional fields appear, including the caching method and connection details. Select Redis from the options.

LiteSpeed Cache Object Cache settings screen showing Redis method enabled with local host and default port configuration.

Now enter your Redis connection details from your host or cPanel:

  • Host: 127.0.0.1 or the UNIX socket path
  • Port: Default 6379 (leave as 0 if using a socket). Check cPanel for the correct port
  • Database ID: 0 (use a different ID for multiple WordPress sites)
  • Password: Leave blank unless your host or cPanel provides one.

Click Save Changes. WordPress now knows where to find Redis, but the connection still needs verification.

Step 3 — Verify the Redis Connection

After entering your Redis details and saving changes, the next step is to confirm that WordPress is successfully connected.

To do this, go to WordPress > LiteSpeed Cache > Cache > Object.

At the top of the page, you’ll see a Status box. In the current interface, this is what you should look for:

  • Memcached Extension: Disabled (this is normal if you’re using Redis)
  • Redis Extension: Enabled
  • Connection Test: Passed
Object Cache settings in WordPress plugin showing Redis enabled with successful connection test status.

If you see “Connection Test: Passed”, that means Redis is working correctly, and WordPress is now using it for object caching.

Older versions of LiteSpeed Cache used to show hit/miss statistics inside the plugin. That information is no longer displayed in the current interface. The connection test result is now your main confirmation.

What If the Connection Test Fails?

If instead you see an error or “Failed,” check the following directly in this same screen. First, confirm that:

  • Object Cache is set to ON
  • Method is set to Redis
  • Host is correct (commonly 127.0.0.1)
  • Port matches what your host provided
  • Password is correct (if required)
  • Redis Database ID is set properly (usually 0)

Then click Save Changes again and re-run the connection test.

If it still fails, the issue is almost always that either the Redis server isn’t actually running on the hosting account, the wrong port number, the firewall is blocking the Redis port, or an incorrect socket path (if using a UNIX socket).

Optional LiteSpeed Cache Settings Explained

Below the main connection field in the Object Cache setting in the LiteSpeed plugin, you’ll see additional options like Global Groups and Do Not Cache Groups. In most cases, you do not need to change these defaults.

Object Cache settings in WordPress plugin displaying enabled Redis with persistent connection, cache WP-Admin, and store transients options.

Persistent Connection should stay ON. It allows WordPress to reuse the Redis connection instead of reconnecting for every request.

Cache WP-Admin can improve backend speed, but on very low-memory servers, you may test with it disabled if you experience unusual behavior.

Store Transients should generally remain ON to improve how WordPress handles temporary data. Unless you have a specific reason, leave the advanced settings unchanged.

How to Know Redis Is Actually Helping

Once Redis is active, you may notice:

  • Faster wp-admin performance
  • Quicker page generation for logged-in users
  • Better performance on dynamic pages
  • Reduced database usage

Redis does not replace full-page caching. LiteSpeed’s page cache still handles most frontend speed improvements. Redis improves database performance behind the scenes.

If your site is mostly static content, the difference may be small. If you run WooCommerce, membership plugins, or heavy queries, Redis makes a noticeable impact.

Common Mistakes and Conflicts to Avoid

The most frequent mistake you could make is running multiple object cache plugins. Only LiteSpeed Cache should manage Redis to prevent conflicts or cache corruption.

Also, if you run multiple WordPress sites on the same server, don’t use the same Redis database ID for all of them. Otherwise, cached objects can mix, causing login issues or wrong data to appear.

You must assign a different database ID to each site on the same server using the Redis connection. For example:

  • Site A Database ID = 0
  • Site B Database ID = 1
  • Site C Database ID = 2
  • Site D Database ID = 3

That’s how you name each site to avoid data mixup.

As for performance, Redis only improves backend performance by caching database queries, not static pages. If you expect dramatic page load speed improvements on a small, low-traffic blog, you may be disappointed. The real gains are visible on database-heavy sites.

Finally, Redis runs in memory. On very low-RAM hosting plans, it may provide limited benefit or could be disabled under load. Check with your host if you’re unsure.

FAQs

What is Redis, and why should I use it with WordPress?

Redis is an in-memory data store that caches frequently accessed database queries. When you enable Redis object cache in WordPress, your site retrieves stored data directly from memory instead of querying the database repeatedly. This reduces server load, speeds up the admin area, and improves performance for dynamic sites like WooCommerce stores or membership platforms.

How do I enable Redis in the LiteSpeed Cache plugin?

To enable Redis, first make sure the Redis service is running on your server and the PHP Redis extension is enabled. Then, go to LiteSpeed Cache > Cache > Object in WordPress, turn Object Cache ON, select Redis as the method, enter your connection details (host, port, database ID, password if needed), and save changes. Finally, run the Connection Test to confirm it’s working.

My Redis connection test failed. What should I check?

Check that the Redis service is running in your cPanel Redis Manager, verify that the host, port, password, and database ID are correct, and ensure the PHP Redis extension is enabled. On VPS or cloud servers, firewall rules may block the Redis port (default 6379), so confirm it is open.

Will enabling Redis improve my page load speed?

Redis primarily improves backend performance by caching database queries. It speeds up wp-admin, WooCommerce, and dynamic content loading. While it may help page load slightly, full page caching (also handled by LiteSpeed Cache) is responsible for most frontend speed improvements.

Can I use Redis on multiple WordPress sites on the same server?

Yes, but you must assign a different Redis database ID to each site. Using the same ID can cause cached objects to mix between sites, leading to login issues, wrong content display, or admin area glitches.

Conclusion: Is Redis Worth Enabling on Your WordPress Site?

If your hosting supports it, enabling Redis object cache is usually worthwhile. Redis reduces repeated database queries, keeps the admin area fast, and supports dynamic sites such as WooCommerce stores or membership platforms.

For small blogs, the impact may be modest, but for growing, database-heavy websites, Redis prevents database overload and keeps performance stable.

Once enabled in LiteSpeed Cache plugin settings, Redis quietly runs in the background, improving site speed and reliability without constant maintenance.

Shamsudeen Adeshokan

About The Author

Shamsudeen is a WordPress expert with 10+ years of blogging experience, helping beginners build and grow successful websites.

Featured on Search Engine Land, HuffPost, SEO PowerSuite, ProBlogger, and more, Shamsudeen shares practical tutorials, expert tips, and step-by-step guides to make WordPress easy for everyone.

Let's connect on social media platforms...

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top