πŸ“„
Performance

Configuring Redis Cache for WordPress

πŸ“… 14 October 2026 ✏️ 14 October 2026 ⏱ 5 min leestijd

Learn step by step how to set up Redis object cache for WordPress, including Plesk configuration, plugin settings, and common pitfalls.

Redis is a fast in-memory database that WordPress uses as an object cache: results of heavy database queries are temporarily stored in memory instead of being fetched from MySQL every time. This results in noticeably faster page building, especially for busy sites with dynamic content. In this article, you’ll learn how to configure Redis step by step, which plugin you need, and how to check that everything is working.

What is Redis object cache and why use it

With every page load, WordPress retrieves data from the database: posts, settings, menus, widget data. Without caching, this happens again on every visit, even if the data hasn’t changed. Redis stores these query results in memory, allowing WordPress to retrieve them directly without querying the database again. The difference with a page cache like LiteSpeed Cache is that Redis mainly helps with dynamic components: logged-in users, WooCommerce shopping carts, forms, and admin screens benefit the most from it.

WordPressRedisobject cacheMySQLonly on cache miss

Setting up Redis in Plesk

On a Plesk environment with web hosting from Tandata, you can easily find Redis via the Plesk dashboard. Before you can connect, the Redis service must be available and active for your subscription.

1

Go to your website environment

Log in to Plesk and open the settings of the website for which you want to enable Redis.

2

Activate the Redis extension

Look under PHP settings or extensions for Redis and enable it for your domain. If you don’t see Redis listed, contact support to have it activated for your account.

3

Note the connection details

Plesk shows a hostname (usually 127.0.0.1), port (default 6379), and possibly a password. You’ll need these in WordPress if required.

4

Check the PHP Redis extension

Make sure the phpredis PHP extension is active in your domain’s PHP settings; without this extension, no WordPress plugin can connect.

Connecting WordPress to Redis

Once Redis is active at the server level, you connect WordPress to it via a plugin. The best-known and most stable option is Redis Object Cache.

1

Install the plugin

In WordPress, install the “Redis Object Cache” plugin via Plugins > Add New Plugin and activate it.

2

Add configuration to wp-config.php

Add the following lines above the line “That’s all, stop editing!”: define('WP_REDIS_HOST', '127.0.0.1'); and define('WP_REDIS_PORT', 6379);. Optionally add WP_REDIS_PASSWORD if one is set.

3

Activate the object cache

Go to Settings > Redis in the WordPress dashboard and click “Enable Object Cache”. The plugin will now automatically place the object-cache.php file in the wp-content folder.

4

Test the website

Open the site in an incognito window and check that everything loads normally, including logged-in features such as the WooCommerce shopping cart.

πŸ’‘ Tip: always combine Redis object cache with a page cache like LiteSpeed Cache. They complement each other: page cache speeds up the delivery of complete pages, while Redis speeds up the database requests behind them.

Checking and troubleshooting

After installation, you want to be sure Redis is actually being used and not silently failing. The Redis dashboard in WordPress shows the status (Connected or Not connected) and statistics such as hits and misses. If you see “Not connected”, first check whether the phpredis extension is active and whether the host/port are correct.

If your site behaves oddly or runs slower after activation, temporarily disable the object cache via the same settings page and check whether the problem disappears. With caching-related issues, it’s wise to implement changes one at a time, so you know exactly which step makes the difference. If you can’t solve it, check the knowledge base or contact support via WhatsApp, ticket, or email; at Tandata, someone is available 24/7, even at night.

Running into limitations with your current hosting package, for example because Redis isn’t available? Check out the options for web hosting with NVMe storage and Plesk, or read how switching to Tandata works.

Frequently asked questions

Does Redis object cache work with WooCommerce?

Yes, Redis often delivers significant gains especially with WooCommerce, since shopping carts, sessions, and product stock cause many database queries that would otherwise be executed repeatedly.

Do I need a page cache in addition to Redis?

Yes. Redis speeds up database queries, but it doesn’t replace a full page cache. Use them together for the best result.

Can I also use Redis for sessions instead of just object caching?

That’s technically possible, but for most WordPress sites, object cache is sufficient and easier to maintain than a full session store configuration.

My site loads slower after activation, what now?

Temporarily disable the object cache, check whether the phpredis extension is installed correctly and whether the connection details are correct, then reactivate step by step.

Does Redis also work for email or only for the website?

Redis object cache only affects the website itself, not email. For fast and reliable business email, check out business email from Tandata.

Conclusion

Redis object cache speeds up WordPress by storing database queries in memory instead of running them repeatedly. With Plesk, the server side is quickly set up, after which the Redis Object Cache plugin handles the connection with WordPress. Combine this with a page cache for the best result, and always check after installation that the connection is active.

View web hosting β†’

Was dit artikel nuttig?