LiteSpeed object caching with Redis ensures that your WordPress site’s database queries are stored in memory, so they don’t need to be executed repeatedly. This especially speeds up dynamic sites with many logged-in users or WooCommerce functionality. In this article, you’ll learn how to activate Redis, link it to LiteSpeed Cache, and verify that everything works.
What is object caching and why Redis?
Every time WordPress builds a page, it sends countless queries to the database: menus, settings, posts, user data. Object caching stores the results of those queries in memory, so they’re immediately available on a subsequent visit without putting load on the database again. Redis is a popular choice for this because it’s extremely fast and works well with the LiteSpeed Cache plugin, which directly controls the object caching mechanism.
The difference with page caching is important: page cache stores a complete HTML page, object cache stores individual database results. The latter is especially valuable for pages that can’t be (fully) cached, such as a shopping cart, a membership page, or a dashboard.
What you need
For object caching with Redis on a Plesk server, you need three components: the Redis service itself, the PHP extension redis or phpredis, and the LiteSpeed Cache plugin in WordPress. Many managed hosting packages already have Redis ready as an add-on, but you still need to activate and link it.
Check beforehand whether your web hosting package supports Redis. At Tandata, you’ll find this as an extension in Plesk; you don’t need to install anything yourself at the server level, just activate it and link it to your WordPress site.
Setting up Redis and LiteSpeed Cache
Activate Redis in Plesk
Log in to Plesk, go to your domain, and find the Redis extension or toolkit. Activate the Redis instance for your hosting account so a port and password become available.
Check the PHP extension
Go to the PHP settings of your domain and check whether the redis extension is enabled. Without this extension, WordPress cannot communicate with Redis, even if the service is running.
Install the LiteSpeed Cache plugin
Install and activate the LiteSpeed Cache plugin in WordPress, if it isn’t already active. Go to Cache > Object in the plugin’s menu.
Link object cache to Redis
Set the method to Redis, enter the hostname (usually localhost or 127.0.0.1), port, and password if applicable, as shown by Plesk. Save the settings and enable object cache.
Test and clear the cache
Clear all caches via the plugin and visit your site again. Check the plugin status to confirm that the connection with Redis is reported as active.
Verifying and troubleshooting
After enabling it, you can check under Cache > Object in the LiteSpeed Cache plugin whether the connection with Redis is active. If there’s an error message, first check whether the PHP extension is actually active for your domain’s selected PHP version, as this is the most common cause.
Does the connection work, but you don’t notice any speed difference? Check whether plugins like WooCommerce or a membership plugin actually use the WordPress object cache API. Most modern plugins do this automatically, but heavily customized themes with their own queries sometimes don’t fully benefit without code adjustments.
Moving from another provider and want to bring these settings along? Check the page about switching to Tandata for exactly how a migration works, including caching configuration.
Frequently Asked Questions
Is Redis the same as page caching?
No. Page cache stores complete HTML pages, Redis object caching stores individual database results. They work together but solve different problems.
Does object caching with Redis also work for WooCommerce?
Yes, stores with a lot of dynamic content, such as shopping carts and stock status, especially benefit from object caching, because these pages are hard to fully cache at the page level.
Can I use Redis without the LiteSpeed Cache plugin?
You can also link Redis via a separate object cache plugin, but in combination with LiteSpeed servers, the LiteSpeed Cache plugin is the most direct and maintenance-friendly option.
Why do I see no difference after activating it?
Check whether the cache was actually cleared after setup and whether the PHP redis extension is active for the correct PHP version. Without this extension, WordPress will simply keep querying the database directly.
Does object caching affect email or other services?
No, object caching with Redis works exclusively at the website level. Your business email remains unaffected.
Conclusion
LiteSpeed object caching with Redis makes dynamic WordPress sites noticeably faster because database queries don’t need to be executed repeatedly. With Redis activated in Plesk, the correct PHP extension enabled, and the LiteSpeed Cache plugin properly linked, you’ll have this working within a few steps. Not sure whether your hosting package supports this? Check the options available with web hosting or get in touch via the knowledge base.