Redis is a high-performance in-memory caching system that can significantly improve the speed of your WordPress website. By enabling Redis object caching, WordPress stores frequently requested data in memory instead of repeatedly querying the database.
This guide explains how to enable Redis caching for WordPress using the DirectAdmin hosting panel.
Requirements
- An active hosting account with Actiefhost
- A WordPress website installed
- Access to DirectAdmin control panel
- Redis service enabled on your hosting package
Step 1 – Log in to DirectAdmin
Open your DirectAdmin control panel:
https://yourdomain.com:2222
Enter your hosting username and password.
Step 2 – Install the Redis WordPress Plugin
Log in to your WordPress admin panel.
Navigate to:
Plugins → Add New
Search for:
Redis Object Cache
Install and activate the plugin developed by Till Krüss.
Step 3 – Configure Redis Connection
Most DirectAdmin servers automatically provide Redis on the local server.
Open your WordPress configuration file:
File Manager → public_html → wp-config.php
Add the following lines above the line that says:
/* That's all, stop editing! Happy publishing. */
Add this configuration:
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
Save the file.
Step 4 – Enable Redis Cache
Return to your WordPress admin panel.
Go to:
Settings → Redis
Click:
Enable Object Cache
If the connection is successful, WordPress will start storing cached objects in Redis.
Step 5 – Verify Redis is Working
Inside the Redis plugin page you should see:
- Status: Connected
- Redis Version
- Memory usage
- Cache statistics
If Redis is connected successfully, your WordPress site will automatically benefit from faster performance.
Benefits of Redis Caching
- Faster WordPress page loading
- Reduced MySQL database usage
- Improved performance during high traffic
- Better scalability
Troubleshooting
Connection failed
Check that the Redis configuration in wp-config.php is correct:
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
Plugin cannot connect to Redis
Make sure Redis is enabled on your hosting plan. If Redis is not available, please contact Actiefhost support.
Conclusion
Using Redis with WordPress through DirectAdmin is a simple way to improve your website performance. Once enabled, Redis will reduce database load and significantly improve page loading speed.
If you need help configuring Redis, the Actiefhost support team is ready to assist you.