![redis-logo.jpg](https://blog.coolicehost.com/file/2024/05/redis-logo.jpg)
Redis, also known as Remote Dictionary Server, is a type of database that can write caching to the RAM of the server itself.
Unlike traditional caching methods, where it is recorded either on the hard drive itself or in a classic database, Redis is significantly faster because it retrieves the recorded data from the server’s RAM.
For this reason, it is a very good solution for speeding up websites and applications, as it handles key-value object data extremely well – while also being able to be used for a core database.
Tech giants like Amazon, Microsoft, Google, Shopify, Instagram, and many others use this technology because it dramatically improves their productivity.
How Redis Speeds Up WordPress/WooCommerce Websites?
To be able to use Redis, it is necessary to have it installed on your server by your hosting provider.
If it is not installed – usually this can be done with a request to technical support. In all of our plans Redis is available.
After that, certain directives need to be set in wp-config.php in order for WordPress to recognize and connect to Redis.
- Here is an example and commonly used configuration in wp-config.php:
// Redis cache
define( ‘WP_REDIS_SCHEME’, ‘unix’ );
define( ‘WP_REDIS_PATH’, ‘/home/user/.redis/redis.sock’ );
Note: we recommend that you check with our technical team before implementing.
After that, you have two options – either to write a custom solution or to use a ready-made solution.
Redis Object Cache
This plugin has a free and a paid version – the paid version, of course, has a number of benefits.
After installing the plugin you should see something like this (below), please note:
- Status -> Connected;
- Filesystem: Writeable;
- Redis: Reachable;
In case you experience difficulties with embedding, we recommend that you contact our technical team to assist you – your website developer.
And if you created it yourself – to the hosting provider, which is our team.
In certain cases, specific changes to the website architecture may be required for Redis to work.
We also attach videos where you can learn more about this technology:
Read more at: Redis – Wikipedia.