1. Home
  2. Performance
  3. How to Enable Memcached or Redis on WordPress with LiteSpeed Cache

How to Enable Memcached or Redis on WordPress with LiteSpeed Cache

In this article, we will look at how to enable Memcached or Redis on WordPress with LiteSpeed Cache.

Note: The glossary contains explanations on a wide range of subjects and can be consulted to clarify certain terms.

Prerequisites

Enter the following address in your web browser: https://mg.n0c.com/en/.

Procedure

The procedure is similar for Memcached and Redis.

  1. Activate Memcached or Redis, as appropriate, as explained in How to use Memcached and How to use Redis respectively.
  2. Take note of the path to the Linux socket to establish the link between Memcached or Redis and your web application (path /home/USERN0C/.memcached/memcached.sock for Memcached, or /home/USERN0C/.redis/redis.sock for Redis):
path to the Linux socket to establish the link between Memcached and your web application
path to the Linux socket to establish the link between Redis and your web application
  1. Log in to your WordPress Dashboard and click on Plugins -> Installed Plugins:
Installed plugin in WordPress
  1. Make sure the LiteSpeed Cache plugin is installed in WordPress :
Make sure the LiteSpeed Cache plugin is installed in WordPress
  1. Navigate to the LiteSpeed Cache Object Cache Settings, click on the [6] Object tab and choose the ON option next to Object Cache:
Object cache ON
  1. Choose the Method (Memcached or Redis) :
Choose the Method (Memcached or Redis)
  1. In the Host field, enter the path you noted in step 2:
Enter the path in the host field
  1. Put 0 for the Port :
Put 0 for the Port
  1. Save the configuration by clicking on the Save Changes button:
Save Changes
  1. Finally, make sure that LiteSpeed indicates that Memcached or Redis has passed the Connection Test, which confirms that the activation of Redis or Memcached in LiteSpeed Cache for WordPress is complete:
confirm that the activation of Redis or Memcached in LiteSpeed Cache for WordPress is complete
Updated on August 31, 2026

Related Articles