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
Β
