I have good news for you:
According to a notification on HawkHost’s blog, this hosting provider support Redis Cache all shared hosting plans.
Both Memcached and Redis are grouped in a new category named cPanel Application Manager.
In this post, I show you how to configure Redis Cache for WordPress blogs.
What is Redis Cache?
Redis Cache is a caching system which stores data on RAM. So that, Redis can boot website speed very much compared to access data from hard disk.
Redis and Memcached have many similar features. They belong to NoSQL family and store data on RAM. Memcached was born in 2003.
Redis was born later in 2009. Therefore, Redis is more powerful more than Memcached. In most cases, Redis beats Memcached.
You can learn more about the difference between Memcached and Redis Cache.
How to enable Redis on HawKhost
Step 1: Start Redis server
Open cPanel of HawkHost. Head over to HawkHost Links, click on Server Application Manager.
Next, you click on Enable link to start Redis.
It takes 5 minutes to start Redis
Once Redis is started successfully, you can see the message as below:
You will need to copy socket path to connect to Redis server as mentioned below.
Step 2: Install PHP Redis module
You need to install PHP Redis module to connect your blog to Redis Server.
In the cPanel of HawkHost, go to Software. Click Select PHP Version.
Next, select Redis option. Click Save button to save your configuration.
Step 3: Install WordPress Plugin
If you use cache plugins which don't support Redis such as LiteSpeed Cache, WP Rocket:
You need to install and active plugin Redis Cache.
Once the plugin is activated, you open wp-config.php and add two 2 following lines to the file:
Replace my Redis Socket path with your value.
Now, go to Install -> Redis, click Enable Object Cache button.
If you see the status is connected, it means you install Redis Cache on your blog successfully.
This case applies for W3 Total Cache plugin. If you are using this plugin, do the following steps:
Go to General Settings, select Page Cache. At Page Cache Method, select Redis option. Click Save Settings & Purge Checks.
Do the same thing for Object Cache and Database Cache.
HawkHost use Unix socket for Redis Server. So that, you need to adjust connection configuration.
Go to Page Cache. Scroll to Advanced part. At Redis hostname:port / IP:port, enter your unix socket path.
Click Test button. If everything is OK, you'll see the message as "Test passed." Remember to click Save Settings & Purge Checks to save your setting.
Go to Object Cache and Database Cache, update connection information using the same path as the value in Page Cache.
Now you know how to configure Redis Cache on HawkHost.
If you have any problems, please let me know in the comment box.
Disclosure: Some of the links in this website are “affiliate links.” This means if you click on the link and purchase the item, we will receive an affiliate commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.