Log in
Model

QuoteMutex

Magento\Quote\Model\QuoteMutex

What it does

This class provides database-level locking for quote operations to prevent race conditions when multiple requests try to modify the same quote simultaneously.

Developers should use this when performing critical quote updates (like checkout or cart modifications) that need to be atomic and thread-safe.

It uses database row locking with transactions to ensure only one process can modify a quote at a time.

Public Methods

  • execute()