- Your cart is currently empty.
LiteSpeed Cache for WordPress: Enabling Redis Object Cache
At NEOSERV, we offer all Turbo Hosting subscribers free use of Redis – a powerful caching tool that can significantly speed up your WordPress website. Redis in combination with the LiteSpeed Cache plugin is the perfect solution for anyone who wants to optimise their website’s performance and thus improve the user experience.
Redis and object caching
Redis(Remote Dictionary Server) is an open source system for storing data in memory. It is often used as a cache, database or message broker. It supports different data structures such as strings, lists, sets, hashes, etc.
Object caching stores the results of complex and often repetitive queries in a database so that they can be quickly accessed next time without the need for reprocessing. This significantly reduces the load on the database and the time taken to load content.
In its most basic form, Redis acts as a caching system that can be used in conjunction with databases (e.g. MySQL or MariaDB) – in order to improve the speed of application execution at server level. You can read more about this in the blog post Redis and WordPress – everything you need to know.
How to enable object caching with Redis?
If you have a Turbo hosting package with us and use the LiteSpeed Cache plugin on your WordPress website, you can easily start using Redis.
1. Log in to the cPanel control panel (login instructions).
2. Locate the Software section and click on the Select PHP Version icon.
3. Check the redis box to enable this PHP extension.
4. Click on Tools (left column) to navigate back to the main cPanel dashboard page.
5. Locate the Advanced section and click on the LiteSpeed Redis Cache Manager icon.
6. Copy the path to the socket file: /tmp/redis.sock
7. Log in to the WordPress administration.
8. From the left menu, select LiteSpeed Cache -> Cache.
9. Select the Object tab at the top of the interface.
10. Under Object Cache, click ON to enable object caching.
11. Under Method, select the Redis method.
12. In the Host field, paste the path to the socket file you copied in step 6.
13. Since Redis works over a UNIX socket connection, set Port to 0.
14. At the very bottom, click on the blue Save Changes button to save your changes.
Object caching with Redis is now active on your website.
Redis in combination with another WordPress plugin
If you are not using the LiteSpeed Cache plugin but instead another object caching plugin (e.g. Redis Object Cache, W3 Total Cache, WP Rocket), the Redis connection parameters need to be configured manually.
Since Redis on NEOSERV Turbo hosting packages operates via a UNIX socket file, some plugins require additional directives to be defined in the wp-config.php file:
define( 'WP_REDIS_SCHEME', 'unix' ); // Redis via UNIX socket
define( 'WP_REDIS_PATH', '/home/username/.cagefs/tmp/redis.sock' ); // Full path to the socket file
define( 'WP_REDIS_HOST', '127.0.0.1' ); // Some plugins also require host definition
The WP_REDIS_PATH parameter must contain the full path, including the /home/[cPanel_username]/.cagefs/ directory. This line of code therefore needs to be adjusted accordingly (use your actual cPanel username).
The LiteSpeed Cache plugin does not require these settings, as it automatically retrieves the correct Redis socket path via the LiteSpeed Redis Cache Manager tool in the cPanel control panel.
For further assistance, please call us on 059 335 000 or email us at info@neoserv.si.





COMMENT THE POST
Your comment has been successfully submitted
The comment will be visible on the page when our moderators approve it.