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
