How to configure PrestaShop to use Redis

This article discusses how to configure PrestaShop to use Redis.

Redis is an open-source memory object caching system that websites can use to help accelerate page load times. Redis works by caching in RAM frequently accessed data, such as the results of API calls, database calls, and more.

  • Redis is currently enabled on Turbo shared, Turbo reseller, Managed VPS, and Managed Dedicated server accounts.
  • If you have an unmanaged VPS or unmanaged Dedicated Server, you have full root access and can install and configure Redis yourself.
  • Redis is not supported on non-Turbo shared hosting accounts at this time.

If you have a managed hosting account, make sure Redis is enabled before you follow the procedures below. For more information about using Redis on managed hosting accounts, please see this article.

Configuring Redis for PrestaShop

There are several modules available that provide Redis integration with PrestaShop, such as this module and this module. While the user interface may vary between modules, the general steps to add Redis integration to PrestaShop are the same:

  1. Download the PrestaShop module you want to use.
  2. Install the module on your PrestaShop site.
  3. Configure the module to work with the Redis service on the server.
    The Redis service on Managed VPS and Managed Dedicated servers uses the default Redis hostname (localhost) and port (6379) values, so you may not need to do any additional module configuration to enable Redis integration with PrestaShop on these types of accounts. Turbo shared and reseller hosting accounts, however, use a socket at /home/username/.redis/redis.sock. For more information about how to set up and use Redis on managed hosting platforms, please see this article.

More Information

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.