If you have a hosting package with 2GB RAM or more, you can use Redis. This is a caching tool which can help to speed up your website significantly. Especially larger Joomla websites can benefit from Redis. In this manual, you can follow the steps to set up Redis for your website.
For optimal performance, we recommend using the latest, stable version of PHP. Make sure to enable the Redis-module within the PHP-selector.
Set up Redis
- Log into the backend of your Joomla website (example.com/administrator).
- On the top, click on 'System' and then click on 'Global Configuration'.
- Go to the tab 'System' and then scroll down to the settings under 'Cache Settings'.
- Fill out the following:
Cache Handler: Redis
Persistent Redis: Yes
Redis Server Host: /tmp/redis.sock
Redis Server Port: leave empty
Redis Server Authentication: leave empty
Redis Database: 0
Cache Time: 15
Platform Specific Caching: No
System Cache: ON - Conservative Caching or ON - Progressive Caching - Click on the top on 'Save and Close' to save the changes.
Explanation
It depends on your type of website which Redis specific settings work the best. Below are some explanations on the settings, so you can use that when choosing for a setting. Keep in mind that every website is different and you are therefore usually the best judge when choosing settings.
- Conservative caching: Generally speaking, conservative caching is most suitable for websites which change a lot. You can disable caching for specific modules with dynamic content.
- Progressive caching: This is best for websites which are not being updated that often. With this setting, all modules are being cached per standard.
- Cache Time: The more often you make changes, the lower this value has to be. If your website does not receive a lot of updates, this setting can be higher than 15 minutes.
- Platform Specific Caching: With this setting, you can use different caches for different devices (for example, one for desktop users, one for mobile users etc.). If your website is already responsive, this setting can be turned off. That is also the default setting within Joomla.