hideath
Elite Member
- Jun 16, 2019
- 6,620
- 7,370
There are a ton of guides shared here in BHW covering everything you need to do to speed up your wordpress website,
I won't be creating another duplicate thread with the same information,
With this guide, you'll learn how to use Redis in your WP website to get even faster loading speed & cache the wesbite/pages/posts queries
Before starting:
I won't be making a full section for this as the case varies depending on the panel and/or server OS you're using, i personally use aaPanel and it's fairly easy to install & use,
but here are a few guides in most common panels & servers OS':
You have to install the redis extension in PHP to be able to use it with your PHP scripts, in our case to be able to work with Wordpress
How to install Redis in Wordpress:
Depending on the website/server & usage, make sure to change the configuration of both Redis application & website allocated memory & cache to meet your needs
Download the plugin here:
Don't hesitate to post any questions/suggestions as well!
I won't be creating another duplicate thread with the same information,
With this guide, you'll learn how to use Redis in your WP website to get even faster loading speed & cache the wesbite/pages/posts queries
Before starting:
- What's Redis: in simple terms, Redis is a caching software that can be used to cache most of the php & database queries in the server RAM,
RAM is considered way faster than any type of disk storage, including NVME M2, you're queries will be served almost instantly - What's the requirements: you'll need a server that support Redis to be installed as well as some RAM to be allocated to the application, which can vary depending on the website
- Mainly it's best for websites with high traffic-to-pages ratio, meaning if you got too many pages (xxK+) each receiving a couple of visits daily it won't really be worth,
Simply because you'll need too much RAM which could be costly, if your website have a few (=<1K) pages with a ton of traffic, this is right for you - Example of websites that shouldn't be using Redis: Any type of of auto blogs with thousands of pages & low traffic, movie/anime/manga/tv-shows type of websites, programmatic SEO type of websites with ton of pages, etc...
- Example of websites that should consider using Redis: Landing pages websites, Most blog websites, E-commerce websites, Tool websites, Data reporting websites, etc...
I won't be making a full section for this as the case varies depending on the panel and/or server OS you're using, i personally use aaPanel and it's fairly easy to install & use,
but here are a few guides in most common panels & servers OS':
- Install Redis in Ubuntu: https://www.hostinger.com/tutorials/how-to-install-and-setup-redis-on-ubuntu/
- Install Redis in Centos: https://www.digitalocean.com/community/tutorials/how-to-install-secure-redis-centos-7
- Install Redis in Cpanel: https://my.kualo.com/knowledgebase/53_cpanel-how-tos/1409_how-to-set-up-redis-in-cpanel.html
You have to install the redis extension in PHP to be able to use it with your PHP scripts, in our case to be able to work with Wordpress
How to install Redis in Wordpress:
- First, you'll need to download & install Redis cache pro plugin, the link for the nulled version is provided at the bottom of the thread along with VT Scan,
If you're not comfortable with the provided plugin file(s), or want to get frequent updates of the plugin, you can always get Deleted member 752298 service for this ^^ - After installing the plugin in Wordpress, you have to add the following lines in the wp-config.php file (located at the main website folder):
You can change the configuration depending on the server & website as well as your Redis server configuration,PHP:define('WP_MEMORY_LIMIT', '1024M');define('WP_CACHE_KEY_SALT', 'string'); define('WP_CACHE', true); define('WP_REDIS_CONFIG', [ 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, // change for each site 'maxttl' => 3600 * 24 * 7, // 7 days 'timeout' => 1.0, 'read_timeout' => 1.0, 'prefetch' => true, 'split_alloptions' => true, 'strict' => true, 'debug' => false, ]); define('WP_REDIS_DISABLED', false);
Whatever needed to cache most of the websites/pages queries,
Remember to match the Redis server login details as well - Now, to make sure the plugin setup is in point and Wordpress is connected to Redis, go to Settings > Object Cache, it should look something like this:

Depending on the website/server & usage, make sure to change the configuration of both Redis application & website allocated memory & cache to meet your needs
Download the plugin here:
- Redis Object Cache Pro download link: https://file.io/Ay1NejR2StHf (expires after 1 year)
- VT Scan: https://www.virustotal.com/gui/file/cdcc8d1c0ce65f8508e02f8ce7392cf6d7ff79ef501168d00b1960286f7cd8ce
Don't hesitate to post any questions/suggestions as well!
Last edited: