---
title: "How to Enable &amp; Configure Redis Persistent Object Cache for WordPress"
description: "Some Platform i accounts include Redis, which gives you the ability to store persistent object cache in the server's memory. This can help serve your site assets up faster resulting in better..."
url: https://www.inmotionhosting.com/support/product-guides/central/servers/enable-configure-redis/
date: 2022-11-11
modified: 2024-10-18
author: "Jesse Owens"
categories: ["Server"]
tags: ["Central Product Guide"]
type: post
lang: en
---

# How to Enable &amp; Configure Redis Persistent Object Cache for WordPress

![How to Enable & Configure Redis Persistent Object Cache for WordPress on Platform i](https://www.inmotionhosting.com/support/wp-content/uploads/2023/07/How-to-Enable-Configure-Redis-Persistent-Object-Cache-Platform-i-1024x538.png)

Some [Platform i](https://central.inmotionhosting.com/) accounts include Redis, which gives you the ability to store **persistent object cache** in the server’s memory. This can help serve your site assets up faster resulting in better performance. There are several popular plugins available for enabling Redis in WordPress and managing your site cache.

This guide will explain how to configure and enable Redis object caching for your site hosted with Platform i. Then, we’ll show you how to validate if Redis is working using the command line.

- [Configure/Enable Redis](#configure)
  - [Redis Object Cache](#redis-object-cache)
  - [W3 Total Cache](#w3-total-cache)
  - [LiteSpeed Cache](#litespeed)
  - [WP Redis](#wp-redis)
- [Validate Redis is Working With CLI](#validate)

## Enable & Configure Redis Persistent Object Cache

When you want to manage Redis object caching for your WordPress website there are quite a few plugins available. In this section, we will go over the most popular up-to-date plugins that have the ability to enable and control object caching.

### Using the Redis Object Cache Plugin

1. Install the [**Redis Object Cache** plugin](https://wordpress.org/plugins/redis-cache/) by *Till Krüss*.
2. After activating the plugin you should be redirected to the Settings page. If not you can click **Settings** then **Redis** in the WordPress Dashboard.
3. Click the** Enable Object Cache **button.![Enable Redis Object Cache](https://www.inmotionhosting.com/support/wp-content/uploads/2022/11/redis-persistent-object-cache-enabled.png)You are finished when the Status is showing as “Connected” and the Drop-in is “Valid”.

### Using the W3 Total Cache Plugin

1. Install the [**W3 Total Cache** plugin](https://wordpress.org/plugins/w3-total-cache/) by *BoldGrid*.
2. Go to **Performance** then **General Settings** in your WordPress Dashboard. (Another option is to use the W3 Total Cache *Setup Guide* to select Redis as your Object Cache)
3. Scroll down to the *Object Cache* section and check the box for **Enable**.![Enabling Persistent Object Caching](https://www.inmotionhosting.com/support/wp-content/uploads/2022/11/redis-persistent-object-cache-enable.png)
4. Then select **Redis** from the drop-down box next to* Object Cache Method*.
5. Click the **Save Settings & Purge Caches** button. You are finished when you see a message stating “*Plugin configuration successfully updated.*”

### Using the LiteSpeed Cache Plugin

1. Install the [**LiteSpeed Cache** plugin](https://wordpress.org/plugins/litespeed-cache/) by *LiteSpeed Technologies*.
2. Click **LiteSpeed Cache** then **Cache** in the navigation menu.
3. Now click the **Object** tab.![Accessing the Object Cache Settings in the LiteSpeed Cache Settings](https://www.inmotionhosting.com/support/wp-content/uploads/2022/11/redis-persistent-object-cache-litespeed-object-tab.png)
4. Click the **On** button next to *Object Cache*.![Turning on Object Cache Settings](https://www.inmotionhosting.com/support/wp-content/uploads/2022/11/redis-persistent-object-cache-litespeed-enable.png)
5. Next to *Method* click the **Redis** button.
6. Next to *Port* enter: **6379**![Setting the Redis Object Cache Port](https://www.inmotionhosting.com/support/wp-content/uploads/2022/11/redis-persistent-object-cache-litespeed-port.png)
7. Click the **Save Changes** button. You are finished when you see a message stating “*Options saved.*”

### Using the WP Redis Plugin

1. Install the [**WP Redis** plugin](https://wordpress.org/plugins/wp-redis/) by *Pantheon*.
2. Now use the [file manager](https://www.inmotionhosting.com/support/product-guides/wordpress-hosting/central/projects/database-file-manager/#file) to edit your** wp-config.php** file and add the following lines of code:$redis_server = array( 'host' => '127.0.0.1', 'port' => 6379, 'auth' => '12345', 'database' => 0, );
3. **Save** your changes to the wp-config.php file.

## Validate Redis is Working With CLI

1. [Connect to your server via SSH](https://www.inmotionhosting.com/support/product-guides/wordpress-hosting/central/servers/manage-server/#connect).
2. Run the following command:redis-cli pingIf it is working correctly you should see the following response:`PONG`

---

Congratulations, now you know how to enable, configure, and validate that Redis persistent object cache is working with your WordPress site hosted at Platform i!
