GetSourcesAssignedToStockOrderedByPriorityCache
Magento\Inventory\Model\Source\Command\GetSourcesAssignedToStockOrderedByPriorityCache
What it does
This class provides a caching layer for retrieving sources assigned to a stock, ordered by priority.
It wraps the actual command and stores results in memory to avoid repeated database queries when the same stock's sources are requested multiple times during a single request.
Developers use this automatically through dependency injection when they need GetSourcesAssignedToStockOrderedByPriorityInterface, improving performance in multi-source inventory operations.
Public Methods
- _resetState()
- execute()