RuleQuoteRecollectTotalsAsync
Magento\SalesRule\Model\Rule\RuleQuoteRecollectTotalsAsync
What it does
This class handles asynchronous recalculation of shopping cart totals when sales rules (cart price rules) are modified.
When a sales rule changes, this class queues a background job to update all affected quotes/carts, preventing performance issues from synchronous processing of potentially thousands of carts.
Developers would use this when implementing custom rule modifications that need to trigger cart total recalculations without blocking the main request.
Public Methods
- execute()