O'Reilly logo

PrestaShop Module Development by Fabien Serny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performance and optimization

The following sections are only recommendations.

Using Combine, Compress, and Cache

In your administration panel, you can enable an option named Combine, Compress, and Cache (CCC) by navigating to Advanced Parameters | Performance:

Using Combine, Compress, and Cache

If you set all parameters to YES, this option will perform five actions:

  • It will group all CSS files in one file, remove all useless spaces and return lines, and cache it (this will only perfectly work if you used the Tools::addCss method in your module to include the CSS files)
  • It will group all JS files in one file, rename variables and functions with shorter names, remove all useless spaces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required