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:
opcacheintlzip
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
