Model
IsInvalidationRequiredForSource
Magento\InventoryIndexer\Model\ResourceModel\IsInvalidationRequiredForSource
What it does
This resource model determines whether the inventory index needs to be invalidated (recalculated) when a source's enabled/disabled status changes.
Developers use this class to optimize indexer performance by checking if a source has actual items and stock links before triggering expensive reindexing operations, ensuring the index only updates when necessary.
Public Methods
- execute()