Browsed by
Tag: M2

Magento 2 – PHP Optimize Tips – Part 1

Magento 2 – PHP Optimize Tips – Part 1

There are many ways to optimize Magento 2. However, the first thing you should do is optimizing your codes before touching to DB or Cache. Tip 1: Using Factory in the constructor. Why did I say that? Because of the case very simple of Dependence Injection design working in Magento 2 => _constructor, __constructor … will be called, it’s very bad if in the constructor or default functions call for each Collection. => If your classes are Factory the loop process will…

Read More Read More

Follow by Email
Facebook
Facebook
LinkedIn