Skip to content

Configuring Redis or Memcached socket with LSCache for WordPress

This guide assumes you have already installed the LiteSpeed Cache (LSCache) plugin for WordPress. If you have not yet installed it, refer to How to enable/disable or flag LiteSpeed Cache for WordPress first.

All Hawk Host shared, reseller, and semi-dedicated plans support Redis and Memcached. These services use a socket connection (not an IP/port) on shared hosting.

Step 1: Enable Redis or Memcached in cPanel

Section titled “Step 1: Enable Redis or Memcached in cPanel”
  1. Log in to cPanel and search for Server Application Manager:

    181_blobid0.png

  2. Click Enable to spin up your Redis or Memcached instance:

    185_blobid1.png

  3. It takes approximately 5 minutes for the instance to start.

  1. While waiting, search cPanel for Select PHP Version:

    190_blobid2.png

  2. Click the Extensions tab:

    186_blobid3.png

  3. Enable the redis or memcached PHP extension (whichever you plan to use):

    191_blobid4.png

  1. Return to the Server Application Manager in cPanel. You should now see a socket path listed:

    187_blobid5.png

  2. Copy the socket path — you will need it in the next step.

Step 4: Configure LiteSpeed Cache in WordPress

Section titled “Step 4: Configure LiteSpeed Cache in WordPress”
  1. Log in to your WordPress admin dashboard and click LiteSpeed Cache in the left navigation:

    182_blobid6.png

  2. Click the Cache menu:

    183_blobid7.png

  3. Click the Object tab:

    188_blobid8.png

  4. Set Object Cache to ON:

    192_blobid9.png

  5. Select your cache method (Memcached or Redis).

  6. In the Host field, paste the socket path from Step 3.

  7. Set the Port field to 0.

  8. Leave all other settings at their defaults unless you have a specific reason to change them. Click Save Changes:

    189_blobid10.png

  9. If configured correctly, you will see Connection Test: Passed under the Status display:

    184_blobid11.png