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