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):
  1. Log in to your WordPress Dashboard and click on Plugins -> Installed Plugins:
  1. 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:
  1. Choose the Method (Memcached or Redis) :
  1. In the Host field, enter the path you noted in step 2:
  1. Put 0 for the Port :
  1. Save the configuration by clicking on the Save Changes button:
  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:
Updated on November 20, 2024

Related Articles