PrestaShop Documentation, PrestaShop Tutorials

PrestaShop speed optimization tips

Here are practical & proven PrestaShop speed optimization tips, especially useful for Indian hosting + shared/VPS servers ๐Ÿš€


๐Ÿ”น 1. Choose Fast Hosting (Most Important)

  • Use LiteSpeed / NGINX instead of Apache if possible
  • SSD / NVMe storage
  • Minimum PHP memory: 256MB
  • Recommended hosts:
    • Cloudways (DigitalOcean / Vultr)
    • Hostinger VPS
    • AWS Lightsail

๐Ÿ‘‰ Avoid cheap shared hosting for large stores


๐Ÿ”น 2. Use Latest Stable PrestaShop Version

  • Always use the latest stable version
  • New versions include performance & security improvements
  • PHP version: 8.1 or recommended by PrestaShop

๐Ÿ”น 3. Enable PrestaShop Performance Settings

Back Office โ†’ Advanced Parameters โ†’ Performance

Enable:
โœ” Smart cache for CSS
โœ” Smart cache for JavaScript
โœ” CCC (Combine, Compress, Cache)
โœ” Media servers (if using CDN)

Disable (in production):
โŒ Debug mode
โŒ Template compilation โ€œForceโ€


๐Ÿ”น 4. Switch to Production Mode

Set:

  • Compile templates โ†’ Never recompile
  • Cache โ†’ Yes

โš  Clear cache after changes


๐Ÿ”น 5. Use Full Page Cache (Very Powerful)

  • Modules:
    • Page Cache Ultimate
    • JPresta Page Cache
  • LiteSpeed users:
    • Use LiteSpeed Cache

๐Ÿ‘‰ Can improve speed 3xโ€“5x


๐Ÿ”น 6. Enable Redis or Memcached

If VPS available:

  • Install Redis
  • Enable Redis in:
    • app/config/parameters.php

Example:

'cache' => [
  'adapter' => 'cache.adapter.redis',
  'provider' => 'redis://127.0.0.1:6379'
]

Huge boost for large catalogs ๐Ÿ”ฅ


๐Ÿ”น 7. Optimize Images

  • Compress images (TinyPNG / ShortPixel)
  • Regenerate thumbnails
  • Use WebP images (PS 8+ supports better)

Modules:

  • Image Optimizer
  • WebP Image Converter

๐Ÿ”น 8. Use CDN (Cloudflare โ€“ FREE)

  • Enable Cloudflare
  • Turn ON:
    โœ” Brotli
    โœ” Auto Minify
    โœ” Cache static assets
  • Enable Rocket Loader (test first)

Improves speed for global users ๐ŸŒ


๐Ÿ”น 9. Reduce Modules (Very Important)

  • Disable unused modules
  • Avoid heavy sliders & page builders
  • Check slow modules using Profiler

Rule:
๐Ÿ‘‰ Fewer modules = faster site


๐Ÿ”น 10. Optimize Database

  • Clean:
    • Cart rules
    • Old carts
    • Logs
  • Modules:
    • Database Cleaner
  • Optimize tables monthly

๐Ÿ”น 11. Optimize Theme

  • Use lightweight themes
  • Avoid:
    โŒ Multiple sliders
    โŒ Heavy JS animations
  • Remove unused CSS/JS

๐Ÿ”น 12. Enable GZIP / Brotli Compression

Server-side:

AddOutputFilterByType DEFLATE text/html text/css text/js

Or via Cloudflare (recommended)


๐Ÿ”น 13. Lazy Load Images & iFrames

  • Enable lazy loading
  • Improves First Contentful Paint (FCP)

๐Ÿ”น 14. Reduce TTFB (Time To First Byte)

  • Use Redis
  • Use PHP OPcache
  • Good hosting = faster TTFB

๐Ÿ”น 15. Use OPcache (Must Have)

Enable OPcache:

opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000

๐Ÿ”น 16. Test Speed Properly

Use:

  • Google PageSpeed Insights
  • GTmetrix
  • WebPageTest

Focus on:
โœ” TTFB
โœ” LCP
โœ” CLS


๐Ÿ”ฅ Recommended Speed Stack (Best)

โœ… VPS + NGINX / LiteSpeed
โœ… PHP 8.1 + OPcache
โœ… Redis
โœ… Full Page Cache
โœ… Cloudflare CDN


 

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 →