Magento Performance Optimisation: The 2026 Checklist, In Order of Impact
Magento performance optimisation starts with measurement, then works down a short list: production mode, Varnish full page cache, Redis or Valkey, indexers and cron, PHP and database settings, extensions, and finally the front end. Skipping the measurement is the common mistake. A store with a 4-second server response and a store with 1.2MB of unused JavaScript need different fixes, and tuning the wrong layer changes nothing.
This is the order we work in on Adobe Commerce development engagements, with the commands to run. Versions are from Adobe’s system requirements, checked November 2026.
Measure first
Do not change a setting until you know which layer is slow.
- Field data first. Look at Google’s Chrome UX Report data (in PageSpeed Insights or the Core Web Vitals report in Search Console) for real visitors. Google’s thresholds are LCP 2.5 seconds or less, INP 200 milliseconds or less and CLS 0.1 or less, measured at the 75th percentile on mobile and desktop separately.
- Lab data second. Lighthouse is useful for finding what loads, but it simulates a device. It does not replace field data.
- Server time. Time to first byte tells you whether the problem is Magento or the browser. A high TTFB on cached pages points at Varnish or the CDN. A high TTFB on uncached pages points at PHP, the database or an extension.
- Application profiling. On Adobe Commerce on Cloud, New Relic APM is available to cloud projects at no extra cost, and Adobe documents it for monitoring key transactions, external services and database queries. Blackfire needs its own licence bought from Blackfire: Adobe ended free Blackfire access for Pro and Starter cloud subscriptions in April 2020.
- MySQL slow query log. Enable it for a day and read the worst offenders before you touch
my.cnf. - Load testing. Adobe still documents the performance toolkit,
bin/magento setup:perf:generate-fixtures, with small, medium, large and extra large profiles (800 to 600,000 simple products). Run it on a copy, never on production, and disable cron first. Reindex afterwards.
For context on what to expect, our Australian retail site speed benchmark found a median Lighthouse mobile score of 30 across 21 large retailers, 36 third-party companies per site and 1,145kB of unused JavaScript at the median. That was lab data on homepages, so treat it as a pointer to look at your own tags, not a verdict on any one platform.
Step 1: production mode and a clean deploy
A store running in developer or default mode is slow for reasons that have nothing to do with tuning. Adobe says production mode performs better because static files are populated in pub/static and code is compiled.
bin/magento deploy:mode:show
bin/magento deploy:mode:set production
The switch enables maintenance mode, deploys static content, compiles code and disables maintenance mode. Run commands as the file system owner. Adobe Commerce on Cloud supports only production and maintenance modes, so this applies to your own servers.
Also enable every cache in System > Tools > Cache Management before launch, and check bin/magento cache:status after each deploy.
Step 2: Varnish full page cache
A full page cache hit never touches PHP, so this is usually the largest single gain on category and product pages. Adobe highly recommends Varnish as the full page cache server for production stores.
- Adobe’s current requirements list Varnish 8 for the latest patches of 2.4.7, 2.4.8 and 2.4.9. Earlier patches can list different versions, so check your exact patch.
- Generate the VCL from your own admin (Stores > Configuration > Advanced > System > Full Page Cache) for the Varnish version you run, rather than reusing an old file.
- Restart Varnish after upgrades or static content deployments.
On Adobe Commerce on Cloud, Fastly provides the CDN and edge caching, and Adobe documents its configuration separately. For stores outside Cloud, Cloudflare in front of Varnish works. If you do that, read our guide to putting Magento behind Cloudflare first, because lock-down of the origin matters as much as caching.
Common cache killers: a module that sets a cookie on every response, a block marked non-cacheable on every page, and marketing URL parameters that create a new cache entry per click.
Step 3: Redis or Valkey for cache and sessions
Adobe’s performance guidance is to use Redis for sessions and a separate instance for the default cache, and not to use that instance for page cache. Use Varnish for page cache.
On version support: Adobe’s current requirements list Valkey 8.1 for the latest 2.4.8 and 2.4.7 patches and Valkey 9 for 2.4.9. Adobe’s 2.4.9 table has no Redis row, and the 2.4.7 table marks Redis as not supported, so confirm the entry for your exact patch before you plan a Redis upgrade.
Watch for the symptom of an undersized or shared instance: slow admin and checkout, with Redis CPU high or evictions climbing.
Step 4: indexers on schedule, and cron that actually runs
Adobe recommends Update on Schedule instead of Update on Save, because save mode can lock the database and delay data under load.
bin/magento indexer:status
bin/magento indexer:show-mode
bin/magento indexer:set-mode schedule
Two cautions from Adobe’s documentation. Put the site in maintenance mode and disable cron before changing modes. And schedule mode depends on cron: if the triggers go missing, switch the indexers to realtime and back to schedule to recreate them. Before 2.4.8, the Customer Grid indexer supports only update on save.
Cron health is the other half. Check that cron_schedule has recent rows with status success, that nothing is stuck at running for hours, and that the cron user is the file system owner. A silent cron failure shows up as stale prices, products missing from search and emails that never send.
Step 5: message queues and consumers
Asynchronous work (bulk operations, async config save, some imports and B2B functions) is processed by queue consumers.
bin/magento queue:consumers:list
bin/magento queue:consumers:start <consumer_name> --max-messages=1000
A consumer exits once it has cleared the queue, so cron or a process supervisor has to restart it. For large queues, run several instances. Adobe’s guidance also covers asynchronous order data processing and asynchronous email sending, both of which move work off the checkout request. On message queue versions, Adobe’s requirements list RabbitMQ 4.3 for the latest 2.4.7, 2.4.8 and 2.4.9 patches.
Step 6: PHP, OPcache and the database
Adobe’s software recommendations give production OPcache settings:
opcache.memory_consumption=512
opcache.max_accelerated_files=60000
opcache.consistency_checks=0
opcache.validate_timestamps=0
opcache.enable_cli=1
realpath_cache_size=10M
realpath_cache_ttl=7200
Setting opcache.validate_timestamps=0 means PHP never rechecks files, so every deploy must clear OPcache (restart PHP-FPM). Forgetting that is a classic cause of “I deployed and nothing changed”.
PHP versions per Adobe’s requirements: 8.5 for 2.4.9, 8.4 and 8.3 for 2.4.8, and 8.3 and 8.2 for 2.4.7. Our note on PHP 8.2 end of life covers why the version matters beyond speed.
On the database, Adobe lists MySQL 8.4 for 2.4.8 and 2.4.9, and MariaDB 11.4 and 11.8 for 2.4.8 (12.3 for 2.4.9). It also notes MySQL 8.0 reached end of support on 30 April 2026. Its tuning pointers are innodb_buffer_pool_size (sized so each of the default 8 buffer pool instances is at least 1GB) and max_connections set against your total PHP threads (300 for a small environment, 1,000 for a medium one). Do not tune further without the slow log.
For search, production needs OpenSearch (version 3 for the latest 2.4.8 and 2.4.9 patches) or Elasticsearch where listed. Adobe gives no tuning values, so the fix for slow search is usually enough heap and fewer fields in the index, not a magic setting.
Step 7: catalogue size, extensions and the front end
Once the infrastructure is right, what is left is usually your own code and catalogue.
- Catalogue shape. Large configurable products with many options, heavy layered navigation filters and big attribute sets make category pages and indexing slower. Look at which filters anyone uses.
- Extension audit. Disable modules you do not use, and profile the rest. One extension that queries inside a loop can outweigh every setting above. Adobe notes that disabling unused modules via Composer shrinks the codebase.
- Customer segments. If you have many, Adobe suggests setting “Real-time Check if Customer is Matched by Segment” to No, so validation uses one combined query.
- Luma versus Hyvä. Luma’s RequireJS and KnockoutJS payload is the usual front-end bottleneck. Adobe’s own client-side settings (minify CSS, JS and HTML, JavaScript bundling) are fallbacks, and Adobe says bundling can hurt first-page load. Hyvä replaces the front end with a lighter stack. Since 10 November 2025 the Hyvä Theme is free under OSL 3 and AFL 3, while Checkout, Enterprise and Commerce remain commercial. The theme is not a free win: every Luma-dependent extension needs a compatibility check.
- Images and CDN. Serve WebP or AVIF at the right dimensions through your CDN. In our benchmark, one retailer shipped 17.8MB of images on a single page, which is a pipeline problem, not a platform one.
Symptom, cause, check, fix
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Every page slow, even cached ones | Not in production mode, or Varnish bypassed | bin/magento deploy:mode:show, response headers |
bin/magento deploy:mode:set production, fix VCL or cookies |
| Category pages slow, product pages fine | Layered navigation, huge configurables, search | Slow log, OpenSearch response times | Trim filters, review attributes, resize search |
| Admin and checkout slow | Sessions or cache on disk or overloaded Redis | Redis latency and evictions | Redis or Valkey for sessions, separate cache instance |
| Stale prices or missing products | Cron not running, indexers invalid | bin/magento indexer:status, cron_schedule table |
Fix cron user, indexer:set-mode schedule, reindex |
| Deploy done but old code runs | OPcache not cleared | opcache.validate_timestamps |
Restart PHP-FPM on every deploy |
| Orders or emails delayed | Consumers not running | bin/magento queue:consumers:list, queue depth |
Restart consumers, add instances |
| Good server time, poor LCP or INP | Third-party scripts, Luma JS, big images | PageSpeed field data, Chrome DevTools | Tag audit, image pipeline, consider Hyvä |
| Slow only during sales | No cache headroom, undersized database | New Relic, max_connections against PHP threads |
Raise cache hit rate, size the database, load test first |
When it is time to upgrade instead
Some stores are slow because they are old. Regular support for 2.4.6 has already ended, and the newest releases support newer PHP and database versions. See our Magento 2.4 end of life dates and how to apply security patches, and our Magento upgrade page if the version is the real problem.
How we approach it
Our developers include two who are Adobe Commerce-certified. When we took over Aelia Duty Free’s Adobe Commerce platform, the first phase was triage and stabilisation, and performance optimisation and monitoring are part of the ongoing work. You can read the Aelia Duty Free case study for what that covers. If you are in Sydney, see our Magento development in Sydney page, and for a wider view, our Adobe Commerce development page, or ask about Magento support for an existing store.
Sources: Adobe system requirements, performance best practices: configuration and software, deploy modes, indexers, message queues, generate data, New Relic on cloud; Hyvä licensing announcement; Google Core Web Vitals. All checked November 2026.
Common questions
How do I speed up a slow Magento 2 store?
Measure first, then fix in order: confirm the store is in production mode, serve pages from Varnish full page cache, move cache and sessions to Redis or Valkey, put indexers on schedule and keep cron healthy, then audit extensions and the front end. Most slow stores have one or two of these wrong, not all of them, so a profile of a real slow request beats a blanket tuning exercise.
Is Hyvä free for Magento in 2026?
The Hyvä Theme itself is. Hyvä relicensed it under OSL 3 and AFL 3 from 10 November 2025, with free Composer keys. Hyvä Checkout, Hyvä Enterprise and Hyvä Commerce remain commercial products, and Hyvä UI is sold separately. Check hyva.io for current terms before you budget, because the commercial products are priced separately from the theme.
Which Varnish version does Magento 2.4.8 support?
Adobe's system requirements list Varnish 8 for the latest patches of 2.4.7, 2.4.8 and 2.4.9. Earlier patches of a release can list different versions, so check the table for your exact patch level before upgrading Varnish. Use the VCL file exported from your own Magento admin, not an old copy from a previous version.
Does Magento support Valkey instead of Redis?
Yes. Adobe's system requirements list Valkey 8.1 for the latest 2.4.8 and 2.4.7 patches and Valkey 9 for 2.4.9. Those tables list Valkey rather than Redis for those releases, so confirm the exact entry for your patch level before choosing, particularly on Adobe Commerce on Cloud, where Adobe manages the service versions.