GetAssignedStockIdForWebsiteCache
Magento\InventorySales\Model\ResourceModel\GetAssignedStockIdForWebsiteCache
What it does
This class provides cached access to stock ID assignments for websites in Magento's Multi-Source Inventory system.
It wraps the GetAssignedStockIdForWebsite service and stores results in memory to avoid repeated database queries within the same request.
Developers use this when they need to frequently retrieve stock IDs for websites during a single request cycle, improving performance.
Public Methods
- _resetState()
- execute()