The Product Grid Advantage: our 2026 ecommerce SEO report

Magento 2 Upgrade Guide: Moving to the Latest 2.4.x Release

Plan a Magento 2 upgrade to 2.4.x with audit steps, Composer workflow, regression testing, cache tuning, and rollback planning.
Magento 2 Upgrade Guide
Table of Contents
A Magento 2 upgrade is not just a version bump. It touches PHP, Composer packages, search, cache, payment flows, custom modules, checkout, and security controls, which means the safest upgrade is planned like a production release, not a quick maintenance task.
Key Takeaways
  • Treat upgrades as full production releases rather than simple maintenance tasks.
  • Audit your entire infrastructure and third party dependencies before touching Composer.
  • Use a structured staging environment and Composer workflow to manage dependency updates safely.
  • Test critical user journeys like checkout and payment processing thoroughly before launch.
  • Prepare a robust rollback plan and validate security compliance immediately after deployment.

1. Start With a Pre-Upgrade Audit

Remember to start with a pre-upgrade audit
Remember to start with a pre-upgrade audit
Before touching Composer, document what your store actually depends on. Check:
  • Current Magento 2 / Adobe Commerce version
  • PHP compatibility, including PHP 8.3, 8.4, or future 8.5 requirements where applicable
  • MySQL or MariaDB version support
  • Composer version and locked dependencies
  • Third-party extensions and custom modules
  • Theme customizations
  • Payment, tax, shipping, ERP, PIM, and OMS integrations
  • Redis, Valkey, Elasticsearch, OpenSearch, RabbitMQ, Varnish, and cron setup
The big mistake is assuming the application is the only upgrade. In reality, a Magento upgrade often exposes old extension conflicts, unsupported PHP packages, and brittle custom checkout logic. If you’re still deciding between editions, start with the business fit first. The upgrade path and support model can differ between Magento Open Source and Adobe Commerce.

2. Use a Composer-Based Upgrade Workflow

For modern Magento 2 upgrades, Composer should be your control point. A typical workflow looks like this:
  1. Create a full database, media, and code backup.
  2. Clone production into a staging environment.
  3. Put the new Magento version into composer.json.
  4. Run Composer update in staging.
  5. Apply database schema and data updates.
  6. Compile dependency injection.
  7. Deploy static content.
  8. Run automated and manual tests.
For Magento Open Source, that may involve the magento/product-community-edition package. Adobe Commerce projects may use a different package depending on licensing and setup, so verify your project before changing constraints.

Adobe Commerce / Magento

Unlock the Full Power of Adobe Commerce

Custom Magento development built for your catalog, your pricing, and your workflows.

Talk to a Magento Expert
If you want help planning the release, working with an experienced Adobe Commerce Magento team can reduce risk, especially when custom modules are involved.

3. Plan Redis to Valkey and Elasticsearch to OpenSearch Changes

Many stores are also reviewing infrastructure dependencies during upgrades. If you move from Redis to Valkey, test session storage, full-page cache, and cache invalidation carefully. Valkey may be compatible in many Redis-style use cases, but you still need to validate connection settings, eviction policies, persistence, and failover behavior. For search, confirm whether your target Magento version and hosting stack support Elasticsearch, OpenSearch, or both. Then test:
  • Catalog search relevance
  • Layered navigation
  • Indexing speed
  • Synonyms and stop words
  • Large catalog reindexing
Do not save this for launch day. Search problems can quietly hurt conversion because customers simply stop finding products. Before migrating to the latest Magento 2.4.x release, teams must audit underlying server infrastructure, audit every custom dependency, manage dependency updates through Composer in a staging environment, establish clear rollback paths, and verify all PCI security controls. Careful execution of regression testing is essential during this process to ensure that core platform patches and module updates do not accidentally reintroduce legacy defects into the live checkout flow.

4. Build Automated Regression Testing Around Store Logic

Your test plan should cover more than “the homepage loads.” At minimum, automate:
  • Add to cart
  • Checkout
  • Customer login and registration
  • Coupon rules
  • Tax and shipping calculations
  • Payment authorization
  • Order confirmation emails
  • Admin order creation
  • Product imports
  • Search and layered navigation
Use smoke testing for fast release checks, then deeper regression testing for custom workflows. If your storefront is a PWA or headless build, include API and frontend tests; the risks are different from a traditional theme. This is where a clear PWA ecommerce review helps.

5. Tune Varnish and Cache After the Upgrade

After launch, performance tuning matters. New code, new PHP versions, and changed cache behavior can shift response times. Review:
  • Varnish hit rate
  • Full-page cache behavior
  • Block cache invalidation
  • Redis or Valkey memory usage
  • Static asset delivery
  • Cron performance
  • Indexer mode and backlog
If the upgraded store feels slower, do not guess. Measure first, then tune. This Magento 2 speed guide is a useful next step for performance-focused stores.

6. Prepare a Zero-Downtime Rollback Plan

A rollback plan should be written before deployment. Include:
  • Immutable release artifacts
  • Database backup timing
  • Media backup confirmation
  • Blue-green or maintenance-window strategy
  • DNS or load balancer rollback steps
  • Composer lock file restoration
  • Clear go/no-go criteria
The hard part is database rollback. If orders are placed after launch, restoring an old database can erase real transactions. For high-volume stores, plan a zero-downtime or near-zero-downtime strategy with order preservation in mind.

7. Validate Security and PCI DSS After Launch

After the upgrade, confirm:
  • Two-factor authentication is enabled
  • Admin users and roles are reviewed
  • Security patches are current
  • Payment integrations still meet PCI DSS requirements
  • HTTPS, CSP, and cookie settings behave correctly
  • Logs show no upgrade-related errors
Finally, check revenue-critical paths. A technically successful upgrade still fails if checkout friction increases. A post-launch conversion review, including ecommerce CRO, helps catch issues testing may miss. A Magento 2.4.x upgrade is manageable when you treat it as a controlled release. Audit first, upgrade through Composer, test deeply, tune after launch, and keep rollback options ready. That is how you protect uptime, security, and sales at the same time.

References

Daniel Gross

Daniel leads 121eCommerce, focusing on strategy, client relationships, and growth. He works closely with brands to align business goals with practical, results-driven ecommerce solutions. He’s known for his eye for detail and for making complex eCommerce challenges easy to understand and solve.

Ready to Grow Your
Ecommerce Business?

We aim to boost your online growth and bring your site to peak performance. Not sure where your site stands? Our ecommerce consultation services can help you out.

Book a Strategy Session →