Configuring PrestaShop to use Redis
To help improve your site's performance, you can configure PrestaShop to use Redis. Please note that you must have a VPS or Dedicated Server 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.
Note
Redis is currently enabled on Turbo shared, Turbo reseller, Managed VPS, and Managed Dedicated server accounts.
If you have an unmanaged VPS, 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.
Important
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:
-
Download the PrestaShop module you want to use.
-
Install the module on your PrestaShop site.
-
Configure the module to work with the Redis service on the server.
Tip
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
-
For more information about Redis, please visit https://redis.io.
-
To view the official PrestaShop documentation, please visit https://doc.prestashop.com.
Related Articles
Updated 3 days ago