Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 509 Bytes

File metadata and controls

10 lines (8 loc) · 509 Bytes

GraphCommerce_FastBootInventory

The stock id of the current website from the cache. Core resolves it with two selects on every request that loads a product collection.

Plugin/StockIdFromCache answers Magento\InventoryCatalog\Model\GetStockIdForCurrentWebsite::execute() from the entry FASTBOOT_STOCK_ID_<website code>, under the stock_id switch. Plugin/ForgetStockIds cleans the entries after a write of a stock's sales channel links.