Run this below query on magento 2 database. update indexer_state set status = 'invalid' where indexer_id = 'indexer_id_nam...
Read More
Get total execution time of any PHP Script.
Using this below script we can easily calculate execution time of php script. $time_start = microtime(true); // Add script which tim...
Read More
Magento 2 print log with zend library
We can easily print log in magento 2 using below code on any controller, Model, Plugins, Helper. $writer = new \Zend\Log\Writer\Stream...
Read More
Subscribe to:
Posts (Atom)