Log in
Model

GetReservationsQuantityCache

Magento\InventoryReservations\Model\ResourceModel\GetReservationsQuantityCache

What it does

This class provides a caching layer for inventory reservation quantities to improve performance by avoiding repeated database queries.

It stores previously fetched reservation quantities in memory and returns cached values when the same SKU and stock ID are requested again.

Developers use this automatically when checking inventory reservations, as it acts as a decorator around the actual reservation quantity retrieval.

Public Methods

  • _resetState()
  • execute()