The problem
Pages were slow even with full-page cache switched on, and the checkout and order code had grown so tangled that changes kept causing production problems.
What I did
- Found where the time actually went on the slowest pages before changing anything.
- Rewrote the heaviest database queries.
- Tuned full-page caching so more pages came from cache, and improved how Redis handled sessions.
- Refactored the checkout and order workflows into simpler code.
- Optimised the front-end assets.
The result
Pages load noticeably faster, and the cleaner checkout code brought fewer production incidents and support escalations.
Stack
Magento 2, PHP, MySQL, Redis, Varnish
I delivered this work as a senior engineer on the client’s project team.