Redis object cache allows WordPress to keep frequently used database data in memory. This reduces repeated database queries and can improve the performance of dynamic WordPress and WooCommerce pages.

Availability: Redis is available depending on your hosting plan. Only use the UNIX socket settings below when Redis is enabled for your plan.

Before you begin

  • Log in to the WordPress administration area for the relevant website.
  • Make sure the LiteSpeed Cache plugin is installed and activated.
  • Do not run a second Redis or object-cache plugin at the same time.

Configure Redis object cache

  1. In WordPress, open LiteSpeed Cache > Cache > Object.
  2. Set Object Cache to ON.
  3. Set Method to Redis.
  4. Enter exactly /tmp/redis.sock in Host.
  5. Enter 0 in Port. Port 0 is required for a UNIX socket; do not use port 6379 here.
  6. Leave Default Object Lifetime at 360 seconds.
  7. Leave username and password empty unless Gigatech has explicitly provided different credentials.
  8. Leave the remaining settings at their defaults unless Gigatech recommends otherwise for your website.
  9. Click Save Changes.

Example of the correct settings

Correct Redis Unix socket settings in LiteSpeed Cache for WordPress

Verify that Redis is working

After saving, the status panel should show:

  • Redis Extension: Enabled
  • Connection Test: Passed

Then clear the LiteSpeed cache through LiteSpeed Cache > Toolbox > Purge > Purge All.

Troubleshooting

If the connection test shows Failed, verify the following:

  • Host is exactly /tmp/redis.sock.
  • Port is exactly 0.
  • Method is set to Redis.
  • Redis Extension shows Enabled.
  • Redis is included and enabled for your hosting plan.

Never change the permissions of /tmp/redis.sock yourself. If the connection still fails, contact support@gigatech.nl and include the affected website.

Further technical background: official LiteSpeed documentation.

Hasznosnak találta ezt a választ? 0 A felhasználók hasznosnak találták ezt (0 Szavazat)