PrestaShop optimization: speeding up your store step by step (2026)

person list PrestaShop Reading time: 11 min
PrestaShop optimization: speeding up your store step by step (2026)

PrestaShop optimization, speeding up the shop, improving its loading speed? Not everyone who has installed a shop on their own server by themselves has been happy with its performance. I'll show you step by step how you can optimize your online shop built on PrestaShop.

I wrote this post in 2020, and in November 2026 I went through it again from scratch. Some of the advice was about PHP 7 and PrestaShop 1.7, so I updated it for versions 8 and 9. I also added what I do in my clients' shops today: Redis, database cleanup and blocking bots.

In short: what helps the most

  • Up-to-date PHP. PrestaShop 9 runs on PHP 8.1–8.5, PrestaShop 8 on 7.2–8.1. Old PHP is the most common brake on performance I see.
  • Good settings in Advanced Parameters → Performance. Cache enabled, templates not compiled on every visit, debug mode disabled.
  • Object cache in Redis. In a car parts shop, the server response time for categories dropped from 1.01 s to 0.73 s.
  • WebP images in the right sizes. In PrestaShop 9 you enable them in Design → Image Settings.
  • Cutting bots off from filters. In one shop a page with a filter took 19 seconds to load, after blocking them about 3.

Before we get to the individual points, though, keep in mind that the most depends on a few main factors:

  • Theme
  • Database size
  • Modules. Each one hooks into the shop's pages and adds something to the loading time.
  • Hosting. I write about which server I recommend at the end.

Before you start: measure

Without measuring, you don't know whether a change helped. Check your shop in PageSpeed Insights or in GTmetrix, but not just the home page. The slowest pages are usually a category with filters, the product page and the cart, so measure exactly those. Write down the results before making changes so you have something to compare with.

If you don't know which module is slowing your shop down, the module profiler will come in handy. It shows how much time each module takes while the page is being prepared, so you don't have to guess.

1. GZIP or Brotli compression

Check whether compression is enabled on your server. The easiest way is in the browser: F12, the Network tab, refresh the page, click the first file and look for the content-encoding header. If it says gzip or br, all is well. If it isn't there, send a ticket to your hosting provider. They should have no problem enabling compression on your account. In most cases it is enabled by default, but I know hosting companies where you have to switch it on yourself in the panel. One more quick tip so you don't have to wait for the admins to reply: you can easily find instructions on Google. Just type “How to enable gzip compression” and the name of your hosting.

2. PrestaShop optimization with cache enabled, combining CSS, JS and more

Go to the Advanced Parameters → Performance page and set:

  • Template compilation: “Never recompile template files”. “Force compilation” is only for working on the theme. On my own shop ajit.pl I once found compilation forced, and the shop was recompiling its templates from scratch on every visit.
  • Cache → “Use cache”: Yes.
  • Debug mode: No. Debug mode definitely slows the shop down, and on top of that it shows errors to customers.
  • Smart cache for CSS and Smart cache for JavaScript (CCC): Yes. This is exactly the combining and minifying of files.

With these settings your PrestaShop shop will gain speed. In exceptional cases, with a poorly written theme, CCC can do harm. If you have everything set to Yes and the shop loads even slower than before, or something in the layout breaks, untick Smart cache for CSS and check. Then do the same with JavaScript. Remember to clear the cache with the “Clear cache” button after every change.

js css optimization

On the same page there is an Optional features section. If your shop doesn't use combinations, features or customer groups, you can turn them off there and the shop has less to calculate.

3. Upgrade PHP on the server

This point depends on which version of PrestaShop you have installed. According to the official PrestaShop documentation:

PrestaShop versionSupported PHPRecommended PHP
9.18.1–8.58.5
9.08.1–8.48.4
8.0–8.27.2–8.18.1
1.7.87.1–7.47.4
1.6.15.2–7.17.1

You need to be especially careful here. Sometimes an installed module is not compatible with a higher PHP version. In the Advanced Parameters → Information tab you can check which version your installation is running on. Make a backup first. If the shop doesn't work after you raise the PHP version, go back to the previous one as soon as possible. You can change PHP in your hosting panel or by asking the server administrator.

If you are still on PrestaShop 1.6 or 1.7, PHP 7 no longer receives even security fixes. In that case changing PHP alone is not enough and you need to think about a PrestaShop upgrade.

While you're dealing with PHP, check two more things:

  • OPcache must be enabled and have spare memory. On one shared server OPcache was completely full and slowed down all the shops on the account, and the panel kept throwing a 502 error.
  • memory_limit. The documentation recommends at least 256 MB for PrestaShop 8 and 512 MB for PrestaShop 9.

4. Optimize images

With clients who hire me to optimize their shops, I often see images that are too large in the slider, on products and in banners. PrestaShop creates several thumbnails of a single product image. That's a very good thing! On the category page, product images are smaller than on the product page. How do you check whether your images are too big? Go to Design → Image Settings, where the dimensions are listed. home_default is usually the image on product lists (category, home page), and large_default is the large image on the product page. Check that the configured images aren't too big for the places where they are displayed, e.g. by right-clicking an image and opening it in a new tab.

The second thing is the format. In PrestaShop 9 you select the image formats in the same place: besides JPG, also WebP (and AVIF). After the change, regenerate the thumbnails with the “Regenerate thumbnails” button. With a large catalog this takes a while, so it's better to do it in the evening. In PrestaShop 8.1 and 8.2 first enable support for multiple image formats in Advanced Parameters → New & Experimental Features. In older versions WebP is done with a module or on the server side.

And one more thing: images should have their width and height specified in the theme code. Without that, the page jumps around while loading and the CLS metric goes up in PageSpeed. On the product page of ajit.pl, the main image without dimensions gave a CLS of over 1, which is deep in the red. After adding the dimensions, the problem disappeared.

5. Disable modules that are installed but not used

Have modules been installed that you don't use? Remove them! In a full PrestaShop optimization I always get rid of surplus modules. Every active module can add its own scripts, styles and database queries to every page, even if it doesn't display anything. Be especially careful with statistics modules that save every visit to the database. With heavy traffic they can really bloat it, which makes the shop load slowly.

Before you remove anything, disable the module and check the shop: cart, checkout, payments. Only then uninstall it.

6. Optimize the database

PrestaShop collects a lot of statistics. Let's be honest, most of us use Google Analytics anyway to collect and analyze data. With heavy traffic, the collected data can weigh the shop down. The tables that bloat most often are:

  • ps_connections, ps_connections_source and ps_guest, i.e. every visit, including bots,
  • ps_page_viewed and ps_pagenotfound, i.e. page views and 404 errors,
  • ps_log, i.e. back office logs,
  • ps_cart, i.e. old abandoned carts (only clean up the ones without orders!).

The simplest way is a database cleanup module, e.g. Database optimization by mypresta. Cleaning up is child's play: every few weeks you just click through the buttons available in the module. Make a database backup before the first cleanup. And if you don't use PrestaShop statistics at all, disable the statsdata module, which collects the data for them. Then the tables will stop growing.

7. Object cache: Redis

I added this point in 2026, because in larger shops it makes a big difference. PrestaShop can keep the results of database queries in memory instead of computing them on every visit. I use Redis for this, with a module that plugs it into the PrestaShop cache.

In a car parts shop, after enabling Redis, the server response time dropped from 1.01 s to 0.73 s for categories and from 0.90 s to 0.74 s for the product page.

Why Redis and not the built-in APCu? With APCu, cron jobs, e.g. synchronization with Allegro (the Polish marketplace) or with a wholesaler, have separate memory from the website, so a change made by a cron job wouldn't clear the shop's cache. Redis is one and the same for everything. Just watch out for one thing: if you change something in the database manually, bypassing PrestaShop, clear Redis afterwards, because otherwise the shop will show old data.

Redis has to be available on your hosting. More and more providers offer it, e.g. Polish hosts such as cyber_Folks, MyDevil or Hostido (from the NVME 3 plan).

8. Cut bots off from filters

This wasn't an issue yet in 2020, and today it is one of the most common causes of a slow shop that I see. Bots click product filters (brand, price, color) en masse, and for the shop that is the heaviest operation. In one shop I counted over a million such requests per day, and the category page with a filter took as long as 19 seconds to load. After blocking the bots, it loads in about 3 seconds.

If you'd rather have me do it for you, I offer a service protecting your shop from bots and overload.

9. Change your hosting

If you've found your way to this post, it's probably because your shop is running poorly and slowly. If all the points above are done and the shop is still sluggish, the server is to blame. The sooner you decide to migrate, the better, and the less work there will be in the future. Today, look for hosting with a LiteSpeed or Nginx server, NVMe drives, a choice of PHP 8 and Redis. I have already written about choosing hosting here: Which hosting to choose for PrestaShop.

I recommend cyber_Folks hosting. With PrestaShop hosting they give you the cyber_Boost module for free, which really makes your shop faster. What do you get?

  • conversion of images to WebP, which Google PageSpeed suggests,
  • cleanup of the database and the shop settings,
  • a LiteSpeed server with LiteSpeed Cache,
  • Redis and NVMe drives.

For my readers I have the discount code 6HZO-U89N-E3JA, which gives you a 25% discount. Details and current plan prices are in the post cyber_Folks discount code.

If you need help with the cyber_Folks module or with optimization at another hosting provider, I'll be glad to help. You can also ask the hosting company's administrators to do it.

Go to cyber_Folks

Optimization for Google is a separate topic

This post is about speed. If you're looking for optimization for Google rankings (URLs, descriptions, headings, sitemap), take a look at the PrestaShop store SEO page. Speed counts there too, because Google measures it with real users.

Frequently asked questions

Why is my PrestaShop shop slow?

Usually for several reasons at once: old PHP, debug mode or forced template compilation, too many modules, a bloated statistics database and bots on filters. Weak hosting comes last. Start by measuring, then work through the points in this post one by one.

Which PHP version for PrestaShop 9?

PrestaShop 9.0 runs on PHP 8.1–8.4 (8.4 recommended), and 9.1 on PHP 8.1–8.5 (8.5 recommended). Before switching, check whether your modules support the new version.

Does combining CSS and JS (CCC) always speed up the shop?

Almost always, yes, but with a poorly written theme it can break the layout or even slow the page down. Enable one option at a time and measure after each change.

Redis or APCu?

If your shop runs cron jobs, e.g. synchronization with Allegro or with a wholesaler, choose Redis. With APCu, cron has separate memory and won't clear the shop's cache after its changes.

Get notified about new articles

Subscribe by e-mail or turn on browser notifications — we only send new blog posts, nothing else.

Comments

No comment at this time!

Leave your comment

Captcha
Sunday Monday Tuesday Wednesday Thursday Friday Saturday January February March April May June July August September October November December