**Header Text: **WordPress Object Caching: How LiteSpeed and Redis Work Together

LiteSpeed, Redis, and  WordPress Object Caching Explained

TL;DR: Caching helps your site avoid doing the same work repeatedly. LiteSpeed Web Server for WordPress Hosting handles HTTP requests, while LiteSpeed Cache serves saved pages. WordPress object caching reuses data when WordPress processes requests, and Redis keeps that data available between requests when configured. They do different jobs but work together to reduce server load.

KEY TAKEAWAYS

  • Page caching can serve saved WordPress pages directly without generating them again.
  • Object caching reuses data that WordPress would otherwise need to fetch or calculate.
  • Redis stores cached items in memory between requests, cutting down on repeated database work.
  • LiteSpeed and Redis work well together, though persistent object caching requires an active, properly configured Redis service.
  • The benefits depend on your website’s activity, hosting resources, and performance bottlenecks.

What is Caching in WordPress?

If your WordPress site is slow, it may be repeating backend tasks it has already done. Caching stores reusable data and results, so that later requests can skip some of that processing.

A cache hit means the saved result is ready to serve, while a cache miss means it must be fetched or generated from scratch. Cached results also expire, allowing updated versions to replace them.

For example, a blog post can be saved as a finished HTML page and served directly to the next visitor; that’s page caching. WordPress object caching on the other hand, saves database queries and data WordPress reuses when it still needs to build a dynamic response, such as updating a shopping cart

LiteSpeed handles full-page caching at the server level, while Redis provides persistent object caching in memory to speed up dynamic requests. They handle different parts of the process rather than acting as interchangeable products.

CACHE TYPEWHAT IT RE-USESWHERE IT HELPS
Page CacheGenerated page outputEligible repeat page requests
Object CacheReusable application data and query resultsWordPress processing that still runs
Browser CacheImage, CSS, and JavaScript assetsLater requests from that browser
Strip Banner - Page and object caching help reduce server load and processing time.

What Does LiteSpeed Do

LiteSpeed Web Server handles incoming website requests and delivers pages to visitors. It includes LSCache, a server-level page cache tool that stores finished web pages. When a browser requests a cached page, LiteSpeed can serve the saved version instead of WordPress building it again.

The LiteSpeed Cache for WordPress plugin connects WordPress to that caching engine. It tells the server which pages can be cached, which to exclude, and when outdated copies need to be cleared. For example, updating a blog post can trigger a purge, so visitors can see the latest version.

While the plugin also offers other website optimisation features (like image compression and file minification), installing it alone doesn’t provide the server-level cache engine.

For WordPress page caching to work, your hosting must run a compatible LiteSpeed server or use QUIC.cloud, LiteSpeed’s WordPress-focused CDN (Content Delivery Network).

What are Redis and Object Caching

Object caching allows WordPress to reuse data it has already retrieved, or calculated, rather than repeating the same work. Redis is an in-memory data store that can hold that data for faster access. WordPress object caching is the method; Redis is a backend option.

WordPress has a built-in object cache, but by default, it only keeps entries (saved data) for the current request. A persistent object cache uses a backend, in this case, Redis, to keep eligible cached items available for later requests. Persistent means data can be reused between requests, but it is not stored permanently. It can expire or be cleared when no longer needed.

For example, WordPress can reuse frequently accessed site settings or supported query results when generating a page. This reduces repeated database processing, especially when WordPress still needs to generate a dynamic response (custom page).

Redis object cache works with your site’s database; it doesn’t replace it or automatically cache every database query; what gets stored depends on how WordPress and your plugins interact with the object cache.

How Do LiteSpeed and Redis Work Together

LiteSpeed (page caching) and Redis (WordPress object caching) help cut down on repeated processes at different stages of a WordPress request. A WooCommerce shop is a good example of how they work together.

When a visitor opens a product page, LiteSpeed checks for an eligible stored copy. If one is available, the page cache serves it without WordPress having to generate the page again. That’s a page cache hit, and WordPress usually doesn’t need Redis here.

Next, the customer opens their account page. Since it contains personal information, it normally bypasses the public page cache, so WordPress must generate the response. It can still check its object cache (Redis) for reusable items, such as site settings or supported database query results.

If Redis already has the requested data stored, WordPress can reuse it. That’s an object cache hit. If the data isn’t there, WordPress fetches it from the database or calculates it and may save the result for a later request.

In short: page caching skips WordPress processing altogether, while Redis speeds things up when WordPress still has to build the page.

Here is a diagram of how it works:

Strip Banner - WordPress request paths showing a page cache hit and how Redis object caching can help when WordPress generates a response.

The LiteSpeed Cache plugin can connect WordPress to an active Redis instance on your hosting plan, but it doesn’t install Redis on your server. See our guide on how to use Redis with your WordPress Hosting for configuration and troubleshooting.

Which Websites May Benefit from Object Caching

Not every WordPress website needs object caching. The benefit usually comes when WordPress regularly has to process requests that page caching can’t handle.

Using our earlier example, a WooCommerce store will constantly need to retrieve product, account, and order-related information from the database while customers browse and check out. Membership sites work much the same way, generating personalised pages for logged-in visitors.

When those requests mostly use the same data each time, persistent object caching via Redis can cut down on database queries, freeing up processing and server resources, especially for high-traffic WordPress sites.

A small brochure site probably won’t need object caching. If most visitors see pages served from LiteSpeed’s page cache, Redis will make little noticeable difference.

Before enabling object caching, check what is actually slowing down your website and that your hosting plan supports Redis and has enough memory to run it. Remember, doing this won’t fix an outdated plugin, slow external service responses, or other common WordPress performance issues. The decision should come down to real performance bottlenecks, not just your site’s visitor count.

Strip Banner - Using Redis depends on your website type and hosting environment.

What Should You Know Before Enabling Caching

Before enabling object caching, you need to ensure your hosting plan supports Redis, WordPress can connect to it, and your active plugins are compatible with it. Your hosting provider supplies and manages Redis access, though the options available in your control panel may vary. Avoid overlapping page caching systems or two plugins trying to manage the same object cache.

Personalised content needs separate handling. LiteSpeed normally excludes WooCommerce Cart, Checkout, and My Account pages from public page caching, but check custom setups

As mentioned earlier, cached entries expire, and targeted purging removes outdated copies. Cache warming can also prepare pages for future visits. If recent updates aren’t showing, you may need to clear your LiteSpeed and Redis caches.

Finally, enabling object caching doesn’t automatically mean that your site will perform better, or that Redis is even connected.

Confirm the connection and compare representative requests before and after under similar conditions. Check that shopping carts, checkout, and login still work, and follow your hosting provider’s recommended setup instead of guessing the settings.

Choosing Caching Support for Your WordPress Website

LiteSpeed serves cached pages without rebuilding them, while Redis helps WordPress reuse data when it still has to build pages dynamically across repeated requests. They handle different parts of the job, so using both cuts down on redundant work and database queries, without either one being essential for every type of website.

Domains.co.za WordPress Hosting includes LiteSpeed Webserver technology, while Redis availability depends on the plan (included in WordPress Large and XL). Check your current plan’s compatibility, caching plugins, and whether Redis is already configured before making changes.

Explore Domains.co.za fast, secure WordPress Hosting and how your site can benefit from caching.

Strip Banner - WordPress Hosting with LiteSpeed Technology and LSCache [Learn More]

How to Choose the Right Web Hosting Plan for Your Website

VIDEO: How to Choose the Right Web Hosting Plan for Your Website

FAQS

Do I need Redis if I already use LiteSpeed Cache?

Not necessarily. LiteSpeed Cache can serve saved public pages without WordPress needing to rebuild them, so Redis may not make much difference if most requests are served from the page cache. Redis can still help with uncached requests, such as account pages, when WordPress repeatedly fetches the same data, but first check your site’s performance before enabling it.

Can I use Redis without LiteSpeed?

Yes. Redis can provide persistent object caching through a compatible WordPress integration, even if your website doesn’t use LiteSpeed. You’ll still need a Redis service supported by your hosting provider and a properly configured connection. The two technologies work well together, but neither needs the other to function.

Is installing a caching plugin enough to enable Redis?

No. Installing a caching plugin won’t automatically give you a Redis service. Your hosting plan needs to support Redis; the required PHP extension must be available, and WordPress needs to be able to connect. If LiteSpeed Cache is handling that connection, you usually won’t need a separate Redis object-caching plugin. Follow your hosting provider’s supported configuration.

Does clearing the cache delete my website content?

No. Clearing LiteSpeed or Redis caches won’t remove your website’s posts, products, images, or database content. It only clears saved pages or reusable data. WordPress will generate fresh results as needed, though the first few requests may take a little longer while the caches refill.

Other Blogs of Interest