0

As per Magento's document , function responsible for indexing of cataloginventory_stock is Magento\CatalogInventory\Model\Indexer\Stock::execute($ids).

For debugging purpose, I have modified this function and added var_dump($ids);exit; at the top and ran command php bin/magento indexer:reindex cataloginventory_stock but my code wasn't fired and indexing was completed successfully.

Which class is actually responsible for the re-indexing of cataloginventory_stock ?

2
  • magento version? Commented Feb 23, 2020 at 15:43
  • Magento version is 2.3.1.
    – amitshree
    Commented Feb 24, 2020 at 6:23

1 Answer 1

1

Your file is correct, but you are looking at wrong method try executeFull()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.