Skip to main content

Setting Up Redis for Joomla

Setting Up Redis for Joomla

Redis is a powerful caching tool that can drastically improve your Joomla website's performance by caching frequently accessed data in memory. On WebHostMost servers, Redis is configured to use UNIX Sockets, enhancing both performance and security.

Prerequisites

Before setting up Redis in Joomla, ensure that Redis is enabled on your server.

important

To activate Redis:

  1. Go to Web Control Panel > Website Management > Redis.
  2. Enable the toggle to activate Redis for your website.

Once Redis is enabled, you can proceed to configure it in your Joomla Admin Panel.

Step-by-Step Guide to Configuring Redis in Joomla

Setting Redis for Joomla

Follow these steps to set up Redis caching in Joomla for enhanced performance:

  1. Access Joomla Admin Panel
    Log in to your Joomla Admin Panel.

  2. Navigate to System Configuration

    • In the left-hand menu, click on the System tab.
    • Under the Setup section, click on Global Configuration.
  3. Go to the System Tab

    • In the top-right corner of the Global Configuration page, click the System tab.
    • Locate the Cache Settings section. By default, caching is disabled.
  4. Enable Caching

    • Click the dropdown in the Cache section, and choose either ON - Conservative Caching or ON - Progressive Caching.
      note

      We recommend enabling Progressive Caching for optimal performance, but you can choose Conservative Caching based on your needs.

  5. Select Redis as the Cache Handler

    • Once caching is enabled, more options will appear.
    • In the Cache Handler section, change the handler from File to Redis.
  6. Configure Redis Connection Settings

    • After selecting Redis as the cache handler, you will need to configure the following settings:
      • Redis Server Host/Sock: Enter the Redis socket path from your Web Control Panel. You can find this under Website Management > Redis.
      • Redis Server Port: Set the port to 6380. This is the default value on WebHostMost servers.
  7. Save the Configuration
    Scroll down and click Save. If successful, Joomla will display a success message.

Important Warnings

warning

Error 500 Risk:
Incorrect Redis configuration can cause Joomla to return a 500 Internal Server Error, making your site inaccessible. If this happens, you’ll need to manually fix the configuration in Joomla's configuration files via the File Manager.
Please double-check your settings before saving!

Additional Notes

  • Progressive vs Conservative Caching: Progressive caching stores different versions of cached data for different user groups, while conservative caching uses a simpler approach, storing the same data for all users. We recommend Progressive Caching for larger sites with more dynamic content.
  • No Other Changes Needed: Once Redis is set up in the Cache Handler, no additional options in Joomla’s caching section need to be modified.

Conclusion

By enabling Redis for Joomla, you can enhance the performance of your site, reduce server load, and improve response times. Be sure to follow the instructions carefully to avoid configuration errors.

For further assistance, feel free to reach out to our support team.