8 use \Magento\Framework\App\CacheInterface;
48 $this->eventManager->dispatch(
'clean_cache_after_reindex', [
'object' => $this->context]);
49 if (!empty($this->context->getIdentities())) {
50 $this->getCache()->clean($this->context->getIdentities());
63 $this->eventManager->dispatch(
'clean_cache_by_tags', [
'object' => $this->context]);
64 if (!empty($this->context->getIdentities())) {
65 $this->getCache()->clean($this->context->getIdentities());
75 private function getCache()
77 if ($this->cache ===
null) {
__construct(\Magento\Framework\Indexer\CacheContext $context, \Magento\Framework\Event\Manager $eventManager)
afterUpdateMview(\Magento\Indexer\Model\Processor $subject)
afterReindexAllInvalid(\Magento\Indexer\Model\Processor $subject)