Redis & How It Can Speed Up Your Website
Quick Intro
Redis is a caching system that temporarily stores information in a key-value data structure inside the RAM instead of the memory disk. Since accessing RAM is 150,000 times faster than accessing a disk and 500 times faster than accessing an SSD, it translates to significant speed improvements. Redis cache is popular because it is available in almost all major programming languages.
There is no benefit to enabling Redis unless you plan to integrate it actively into your applications using plugins or direct code. Simply enabling Redis on the panel without its active utilization will consume unnecessary RAM, providing no performance benefit and potentially degrading overall system efficiency.
Watch How To Enable Redis On WHM & Connect With WordPress
Important To Know Before You Begin
Activating Redis for your account creates a "Socket" on the server level. A socket is a method the server system uses to transfer data between two system processes.
When you activate Redis, it creates a (hidden) folder inside of your root file directory, named /.redis
(The period in front of the folder or file name indicates a hidden folder or file).
After Redis has been enabled, you'll need to use the generated path to the Redis socket file as your main Redis Address when setting up Cache on different CMS platforms.
Redis is turned off by default on the server, so manual activation is required.
How To Enable Redis On The Server
Redis can be enabled on the server with a single click.
From your Web Control Panel, navigate to: Website Management > Redis > Toggle the button to enable/disable.
Socket Configuration and Connection Details
Our server is configured to use UNIX Sockets instead of Web Sockets for Redis. This setup enhances security and performance by using system-level connections rather than network-based ones.
Connection Requirements for Redis:
- Socket Type: UNIX Sockets
- Connection Port: Use port 0 when configuring your connection settings in various CMS platforms.
This information is essential for correctly setting up Redis in environments that support custom configuration of caching mechanisms.