LiteSpeed Cache, it is a WordPress plugin has its own cache bindings and overwrites all caching methods. Have in mind that Redis cache WordPress plugin will not work as you expect. You’ll need to set the Redis connection settings in Litespeed Cache in this URL:
There you can input your Redis info like IP, port, and authentication key. You can now disable the WP Redis Plugin .
How to set up LiteSpeed Cache in WordPress (steps to do it right):
- Open your WordPress admin panel.
- Find, install and activate the LiteSpeed Cache plugin.
- Go to section LiteSpeed Cache → Cache, open the tab Cache (the first tab of the menu) and make sure the switch is opposite Enable Cache is in position ON (if not, enable it and save changes by pressing Save Changes):
- On the same tab you are at, similarly enable the required caches and specify their settings.
- Go to Object tab. Than Object Cache → ON.
- If you have an additional service like Memcache(d) or Redis, the object cache can be configured. In our case this is Redis (choose Redis Button) and fill out the fields the way it is presented:
- Put /home/user/.redis/redis.sock, where user is your username of the hosting account.
- Set Port to 0 (in some cases 6379) and choose Default Object Lifetime.
- Check the site is working.
Was this helpful?
1 / 0