Website Optimization

How to Enable Redis Object Caching for WordPress

If your WordPress site runs a busy store, membership area or forum, a lot of its work is repeated database queries. Redis object caching keeps the results of those queries in fast memory, so WordPress does not ask the database the same thing over and over. The result is a noticeably snappier site under load.

This one is best suited to dynamic sites. A simple brochure site benefits more from page caching like LiteSpeed Cache.

Step 1: Make sure Redis is available

Redis needs to be running on your server. On many VernalWeb plans it is available or can be enabled — check cPanel for a Redis icon, or open a ticket to confirm it is active for your account.

Step 2: Install the plugin

  1. In your WordPress dashboard, go to Plugins → Add New.
  2. Search for Redis Object Cache and install it.
  3. Activate the plugin.

Step 3: Connect and enable

  1. Open Settings → Redis in your dashboard.
  2. Click Enable Object Cache.
  3. The status should change to Connected. If it does, you are done.

If it will not connect, the plugin may need the Redis host and port, usually 127.0.0.1 and 6379. These can be added to wp-config.php — ask us if you would like a hand.

Frequently asked questions

Do I need both Redis and a page cache?

They complement each other. Page caching serves whole pages; Redis speeds up the dynamic queries behind logged-in and ecommerce pages. Busy sites often use both.

Redis says “Not connected”.

Redis may not be running or reachable for your account. Confirm it is enabled server-side — contact support and we will check.

Will Redis help a small, simple website?

Not much — the gains show on database-heavy sites. For a small site, focus on image optimization and page caching first.

Was this article helpful?