Magento 2 Code Quick Tips

5 posts   See also:  index   indexer   magento2

Here are some usable Magento 2 (Adobe Commerce) quick tips for developers.

Run partial reindex process (mview)

If you want to force run a partial reindex process, also called mview or materialized view to update only entries collected in a change log table

 No comments   2022   index   indexer   magento 2   magento2

Mark index as invalid or invalidate index in Magento 2

To programmatically mark on of the indexes as invalid you need help of

 No comments   2021   index   indexer   magento 2

Undo Order Cancel in Magento

If you want to restore canceled order, rollback order cancellation and undo order cancel action in Magento and Magento 2 use the following SQL query...

 1 comment   2019   magento 1   magento 2   magento2   mysql   order   sql

Clear redis cache

redis-cli -h <host> -p <port> flushall

 No comments   2019   cache   magento 2   redis

Log Debug Backtrace in Magento 2

$obj = \Magento\Framework\App\ObjectManager::getInstance();...

 No comments   2018   debug   log   magento 2