Model
LegacyStockStatusCache
Magento\InventoryCatalog\Model\LegacyStockStatusCache
What it does
This class optimizes performance by preloading and caching legacy stock status data for multiple products at once.
Developers use it to batch-load stock status information into cache before displaying product lists or collections, avoiding individual database queries for each product's stock status and improving page load times.
Public Methods
- execute()