Magento 2 Varnish cache not working – 0% hit rate and wrong VCL config
Varnish was installed and configured, but every request was hitting PHP – hit rate was 0%. The server was overloaded despite Varnish. The problem was in wrong VCL configuration and session cookies. Fix time: 4 hours.
- Published in Magento / Adobe Commerce
PHP Fibers – cooperative multitasking, async without extensions, ReactPHP
Fibers arrived in PHP 8.1 as a cooperative multitasking mechanism – the ability to suspend and resume a function at any point. These are not threads or processes – a Fiber runs in the same PHP thread but allows switching between tasks without blocking. I show how Fibers work, where they make sense, and how async libraries (ReactPHP, Amp) use them under the hood.
- Published in PHP
Magento 2 – memory exhausted during product import (memory limit)
Importing 10,000 products through the admin panel ended with Allowed memory size exhausted after about 3,000 products. The import ran for 40 minutes without completing. Fix time: 3 hours.
- Published in Magento / Adobe Commerce
Magento 2 transactional emails not being sent – SMTP configuration
Customers were not receiving order confirmations. The shop was sending emails from local sendmail which was being blocked by mail servers as spam. 95% of emails ended up in the Spam folder or were rejected. Fix time: 2 hours.
- Published in Magento / Adobe Commerce
