A slow WooCommerce store costs revenue: visitors leave and Google ranks slow pages lower. Much of this slowdown comes from repeated database queries on every page view. Redis solves this by caching frequently used data in memory, making WordPress and WooCommerce respond much faster. In this article, you’ll learn what Redis does, how to install and configure it, and what to watch out for.
What is Redis and why speed up WooCommerce with it
Redis is an in-memory database that functions as an object cache for WordPress. Normally, WordPress retrieves data from MySQL on every page visit: product information, settings, session data. For a webshop with many products and variable stock, this happens extremely often, because WooCommerce has little static content due to prices, stock, and shopping carts that are constantly changing.
With Redis as an object cache, these queries are stored in memory after the first time. Subsequent requests retrieve the data directly from Redis instead of querying the database again, which is noticeably faster than traditional page caching, which often doesn’t work well for WooCommerce due to dynamic content such as shopping carts and account pages.
Installing Redis and connecting it to WordPress
Before you begin, you need a hosting environment where Redis is available on the server. With Plesk, this can often be activated as an extension, after which you enable the corresponding PHP extension (phpredis) for your domain.
Activate the Redis extension
Check in your hosting panel whether Redis and the phpredis extension are active for your WordPress installation.
Install an object cache plugin
Install a plugin such as Redis Object Cache in WordPress and establish the connection to Redis via the plugin page.
Activate the connection
Click ‘Enable Object Cache’ in the plugin. WordPress will now automatically write an object-cache.php file to the wp-content folder.
Check the status
Check in the plugin whether the status shows ‘connected’ and whether hit/miss ratios are visible after a few page visits.
If you get stuck while activating or don’t see a Redis option in your panel, you can find explanations for various situations in the knowledge base, or contact support.
WooCommerce-specific settings
Redis as a generic object cache is a good foundation, but WooCommerce has extra points to consider. Sessions and shopping carts, for example, should not be cached for too long, otherwise customers will see outdated stock or price information.
Therefore, set exceptions for dynamic endpoints such as the cart, checkout, and account pages, so these are always retrieved fresh. Most object cache plugins let you set an expiration time per group or key; keep this generous for product data and categories, and short for session data.
Also watch out for plugin conflicts: some WooCommerce extensions write their own cache data that isn’t compatible with Redis group settings. After installation, always fully test the order process, including discount codes and shipping options.
Preventing issues and testing
Testing is essential after installation. Add a test product to the cart, change the stock in the admin area, and check whether this is immediately visible on the front page. If you notice a delay in changes coming through, the cache expiration time is probably set too high for that data source.
Also regularly monitor Redis’s memory usage. When the cache is full, old data is automatically removed (eviction), which is normal, but if there are many evictions, it may be useful to increase the allocated memory or review the cache structure.
Always make a backup of your site before making changes, so you can quickly restore it if problems occur. Also check that your domain details and DNS settings are set up correctly, especially if you’ve recently switched providers; if needed, see the page on managing domain names.
Frequently Asked Questions
Does Redis work equally well for every webshop?
The effect is greatest for stores with many products, visitors, or complex product variants. For a small store with little traffic, the gain is less noticeable but still present.
Does Redis replace page caching?
No, Redis caches database objects, not complete HTML pages. For static pages such as blog articles, you can combine this with page caching, provided you exclude the dynamic WooCommerce pages.
Can I turn off Redis if problems arise?
Yes, you can disable the connection with one click via the object cache plugin. WordPress will then fall back to standard database queries.
Does Redis affect email or other services?
No, Redis object caching only focuses on WordPress data. Your email traffic via, for example, business email remains separate from this.
Conclusion
Redis object caching is one of the most effective ways to make WooCommerce noticeably faster, provided you properly exclude dynamic components such as the shopping cart and sessions. Start with the right server support, install a reliable object cache plugin, and test thoroughly before going live.