PrestaShop Documentation, PrestaShop Tutorials

PrestaShop Speed Optimisation Guide

Hereโ€™s a practical, step-by-step PrestaShop Speed Optimisation Guide that works very well for PrestaShop 8 & 9 (shared hosting โ†’ VPS).
Iโ€™ve ordered this from maximum impact โ†’ advanced tuning.


๐Ÿš€ PrestaShop Speed Optimisation Guide

1๏ธโƒฃ Hosting & Server (Biggest Speed Factor)

โœ… Choose the Right Hosting

Minimum recommended:

  • SSD / NVMe storage
  • PHP 8.1 or 8.2
  • Memory: 2 GB RAM (4 GB ideal)
  • Web server: LiteSpeed or Nginx (faster than Apache)

๐Ÿ‘‰ If possible, use:

  • LiteSpeed + LSCache
  • OR Nginx + Redis

โœ… PHP Settings (Very Important)

Set these in cPanel โ†’ PHP INI Editor or .user.ini:

memory_limit = 512M
max_execution_time = 300
max_input_vars = 5000
upload_max_filesize = 64M
post_max_size = 64M

Enable:

  • opcache
  • intl
  • zip

2๏ธโƒฃ Enable PrestaShop Performance Settings

Go to:

Back Office โ†’ Advanced Parameters โ†’ Performance

๐Ÿ”น Smarty Settings

โœ” Template compilation โ†’ Recompile templates if files have been updated
โœ” Cache โ†’ Yes
โœ” Clear cache โ†’ After changes only


๐Ÿ”น Debug Mode

โŒ Turn OFF (very important for speed)


๐Ÿ”น CCC (Combine, Compress, Cache)

Enable all:

โœ” Smart cache for CSS
โœ” Smart cache for JavaScript
โœ” Minify HTML
โœ” Compress inline JS
โœ” Compress inline CSS
โœ” Move JavaScript to the end
โœ” Apache optimization (if Apache)

๐Ÿ“Œ Clear cache after enabling.


3๏ธโƒฃ Image Optimisation (Huge Speed Gain)

โœ… Resize & Compress Images

  • Use WebP images if possible
  • Re-generate thumbnails:
    • Design โ†’ Image Settings โ†’ Regenerate thumbnails

โœ… Recommended Image Sizes

Avoid unnecessary sizes:

  • Keep only sizes used by your theme
  • Delete unused image types

โœ… Image Compression Tools

  • TinyPNG
  • ImageOptim
  • ShortPixel (module)

4๏ธโƒฃ Theme Optimisation

โŒ Avoid Heavy Themes

Problems with:

  • Too many animations
  • Built-in sliders
  • Multiple JS libraries

โœ… Recommended

  • Lightweight themes
  • Minimal homepage blocks

๐Ÿ“Œ Disable unused theme features.


5๏ธโƒฃ Modules Cleanup (Critical)

โŒ Remove Unused Modules

Go to:
Modules โ†’ Module Manager

Disable or uninstall:

  • Statistics modules
  • Unused payment gateways
  • Old SEO modules
  • Demo / sample modules

๐Ÿ“Œ Each active module adds database & JS load.


6๏ธโƒฃ Database Optimisation

โœ… Clean Database

Remove:

  • Old carts
  • Old connections
  • Logs
  • Search index (rebuild later)

Recommended modules:

  • Database Cleaner (official)

โœ… Optimize Tables

Via phpMyAdmin:

  • Select all tables
  • Click Optimize table

7๏ธโƒฃ Enable Caching (Advanced)

๐Ÿ”น Redis Cache (Best)

If your host supports Redis:

Advanced Parameters โ†’ Performance

  • Cache system โ†’ Redis
  • Enter Redis server details

โšก Big speed improvement on category & product pages.


๐Ÿ”น File System Cache (Basic Hosting)

If Redis not available:

  • Enable File system cache

8๏ธโƒฃ Use CDN (Cloudflare โ€“ Free)

โœ… Cloudflare Setup

  • Enable Auto Minify (HTML, CSS, JS)
  • Enable Brotli
  • Enable Caching
  • Turn on HTTP/2 & HTTP/3

๐Ÿ“Œ Cloudflare alone can reduce load time by 30โ€“50%.


9๏ธโƒฃ Enable GZIP / Brotli Compression

Check .htaccess:

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript
</IfModule>

๐Ÿ“Œ Cloudflare does this automatically.


๐Ÿ”Ÿ Reduce External Requests

Avoid:

  • Too many Google Fonts
  • Multiple analytics scripts
  • Heavy chat widgets

Combine:

  • Google Fonts into 1 request
  • Load scripts after page load

1๏ธโƒฃ1๏ธโƒฃ Lazy Load Images

Enable:

  • Image lazy loading
  • Iframe lazy loading

Most modern themes support this by default.


1๏ธโƒฃ2๏ธโƒฃ Speed Testing Tools

Test before & after changes:

  • Google PageSpeed Insights
  • GTmetrix
  • WebPageTest

๐Ÿ“Œ Focus on:

  • LCP
  • CLS
  • TTFB

โš ๏ธ Common Speed Mistakes

โŒ Debug mode ON
โŒ Too many modules
โŒ Uncompressed images
โŒ Heavy homepage sliders
โŒ Cheap shared hosting


โœ… Ideal Speed Setup (Best Practice)

โœ” LiteSpeed + LSCache
โœ” Redis cache
โœ” Cloudflare CDN
โœ” WebP images
โœ” Minimal theme
โœ” CCC enabled
โœ” Unused modules removed


About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →