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
