2.14.9.9. Configure Redis in PrestaShop

On shared hosting, Redis is available as an extra service; on business hosting, it is included in the plan price. Redis is also available as a standalone service.

There are various modules available for integrating Redis with PrestaShop, such as Redis Cache or Redis Cache | Boost website performance (paid). The interface and configuration process may vary slightly, but the general principle is the same.

  1. Download and install the module you need (see above).
  2. Configure the module in the site admin panel:
    1. In the "Advanced Parameters → Performance" section, in the "Caching" section:
      1. Enable "Use cache".
      2. Select "Redis".
      3. Click "Add server", specify the connection settings for Redis, and save the changes:
        • "Scheme" — unix.
        • "Host" — the socket address from the "Redis" section in the form /home/example/.system/redis.sock (without unix:// at the beginning, instead of examplehosting account name).
        • "Port" — 0.
    1. In the "Modules → Module Manager" section in the settings of the installed module, specify the connection settings for Redis and save the changes:
      • "Server" — the socket address from the "Redis" section in the form /home/example/.system/redis.sock (without unix:// at the beginning, instead of examplehosting account name).
      • "Port" — 0.
      • Leave the default values in the other fields.
    2. In the "Advanced Parameters → Performance" section, in the "Caching" section:
      1. Enable "Use cache".
      2. Select "CachePhpRedis".
      3. Save the changes.
  3. Check the site operation.
Content