IsSingleSourceModeCache
Magento\InventoryCatalog\Model\IsSingleSourceModeCache
What it does
This class provides a cached wrapper for checking if Magento is running in single source mode (only one inventory source configured).
It stores the result of the check to avoid repeated database queries within the same request, improving performance.
Developers would use this when they need to frequently check the source mode status without worrying about performance overhead.
Public Methods
- _resetState()
- execute()