Book Image

PrestaShop Module Development

By : Fabien Serny
Book Image

PrestaShop Module Development

By: Fabien Serny

Overview of this book

Table of Contents (19 chapters)
PrestaShop Module Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

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 and return lines, and cache it (this will only perfectly work if you used the Tools::addJs method in your module to include the JS files)

  • Minify the HTML code by removing useless spaces and return lines

  • Compress inline JavaScript in HTML

  • Optimize Apache with .htaccess directives (enable mod_expires and deflate Apache extensions)

Using the cache system...