2.13.1.2.6. Setting up LiteSpeed Cache in WordPress

  1. Change web server for the desired site on OpenLiteSpeed.
  2. Install and activate the plugin LiteSpeed Cache.
  3. Go to section "LiteSpeed Cache → Cache", open the tab "Cache" and make sure the switch is opposite "Enable Cache" is in position "ON" (if not, enable it and save changes by pressing "Save Changes"):
  4. On the same tab, similarly enable the required caches and specify their settings.
  5. If you have an additional service Memcache(d) or Redis, the object cache can be configured:
    1. In chapter "LiteSpeed Cache → Cache" open the tab "Object".
    2. Switch opposite "Object Cache" set to position "ON".
    3. Switch opposite "Method" set to position "Memcached".
    4. Copy the path to the Memcached socket from your hosting control panel and paste into the box "Host".
    5. In field "Port" indicate 11211.
    6. Clickon "Save Changes" and make sure the status "Connection Test" displayed as "Passed".
    1. In chapter "LiteSpeed Cache → Cache" open the tab "Object".
    2. Switch opposite "Object Cache" set to position "ON".
    3. Switch opposite "Method" set to position "Redis".
    4. Copy the path to the Redis socket from your hosting control panel, remove at the beginning unix:// and paste in the field "Host".
    5. Clear the field "Port".
    6. Clickon "Save Changes" and make sure the status "Connection Test" displayed as "Passed".
  6. Configure if necessary image optimization on LiteSpeed servers.
  7. Check the site is working.
Content