> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://krystal-dev.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Configuring Redis Object Caching using Litespeed Cache

#### What is object caching?

An object cache stores the results of expensive and/or frequent database queries in a way that makes them easy to retrieve, and eliminates the need for repeated access to the database. Object caching greatly reduces the time it takes to retrieve query results.

#### What is Redis?

Redis (**Re**mote **Di**ctionary **S**erver) is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

It supports data structures such as strings, hashes, lists, sets, range queries, bitmaps, hyper loglogs and geospatial indexes with radius queries.

In its simplest form, Redis is a caching system that can be combined with MySQL or MariaDB to optimize the application level speed.

#### How do I enable Redis?

We have a separate guide that covers [enabling Redis on your Premium PCI-DSS compliant hosting account (Link opens in a new tab).](https://help.krystal.uk/cpanel-advanced-topics/how-do-i-enable-redis-on-my-pci-compliant-hosting-account)

#### How do I enable Object Caching in LiteSpeed Cache?

| In order to follow this guide, you will need to be able to access your cPanel account (Link opens in a new tab).

1.  Login to your cPanel account
2.  Navigate to the **Advanced** section and click **Redis Manager**
    
    ![](https://storage.crisp.chat/users/helpdesk/website/d826473a31290800/08eba654-f162-4950-b89c-ff79eb_41nnvz.png)
    
3.  Copy your Socket path as shown i.e. `/var/kredis/enableredis/redis.sock`

![](https://storage.crisp.chat/users/helpdesk/website/c6ef02551a9c6000/b928b1e9-2c77-4b22-b800-86d195_1wfhc38.png)

1.  Log In to your WordPress dashboard
2.  Navigate to **LiteSpeed Cache** and click on **Cache**

![](https://storage.crisp.chat/users/helpdesk/website/f1e128288d566800/a99e6a86-0f43-4059-98ce-b29e55_1ys9wd1.png)

1.  Navigate to the **Object** menu

![](https://storage.crisp.chat/users/helpdesk/website/62768010a3b56c00/2f48a4c5-4175-44d3-88e6-af4273_1np2d9j.png)

1.  Under the **Object Cache Settings**, change **Object Cache** from **OFF** to **ON**.

![](https://storage.crisp.chat/users/helpdesk/website/48d52effaa35ac00/d8c9dc4e-ff51-41c6-96c1-a4ed6b_12q4rd7.png)

1.  Change the **Method** from **Memcached** to **Redis**

![](https://storage.crisp.chat/users/helpdesk/website/2623577e43b3e400/bffbdeda-ec6c-4e4a-8fe9-a6e454_45g2dl.png)

1.  In the **Host** box, paste the **socket path** you copied earlier.
    1.  As **Redis** runs on a **UNIX** socket, set the **port** to 0

![](https://storage.crisp.chat/users/helpdesk/website/b573eb4ae8c42000/2a5aa08c-376d-46dd-8fdd-0f3948_mutq4o.png)

1.  Click the **Save Changes** option at the bottom of the form

![](https://files.helpdocs.io/8nzbvyta9f/articles/024v0v6g9g/1655829741801/configure-object-cache-image-7.png)

1.  Done!

* * *

* * *