CleanCache
Magento\Indexer\Model\Processor\CleanCache
What it does
This class acts as a plugin that manages cache cleaning during indexing operations.
It defers cache clearing until after mview updates or reindexing operations complete, improving performance by batching cache invalidation instead of clearing cache multiple times during the indexing process.
Developers typically don't interact with this class directly as it automatically intercepts indexer processor methods.
Public Methods
- beforeUpdateMview()
- afterUpdateMview()
- beforeReindexAllInvalid()
- afterReindexAllInvalid()