Book Image

PrestaShop Module Development

By : Serny
Book Image

PrestaShop Module Development

By: Serny

Overview of this book

If you are a developer who is new to PrestaShop and wants to get a good foundation in development on the PrestaShop framework, this book is for you. It's assumed that you will have some experience with PHP5, jQuery, and HTML/CSS (no need to be an expert on it).
Table of Contents (13 chapters)
12
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...