DeferredCacheContext
Magento\Indexer\Model\Indexer\DeferredCacheContext
What it does
This class defers cache invalidation operations during indexing processes to improve performance.
Instead of immediately registering cache tags and entities for invalidation, it buffers them until commit() is called, reducing redundant cache operations.
Developers use this when running indexers to batch cache invalidation operations rather than invalidating cache for each entity individually.
Public Methods
- registerEntities()
- registerTags()
- start()
- commit()
- isActive()