From 91061af1b6f2eaf2b41d16567a8fed1d6d490673 Mon Sep 17 00:00:00 2001 From: Anton Evers Date: Tue, 5 Dec 2017 11:52:40 +0100 Subject: [PATCH] Fixes #8009 Flush full page cache for all products that have been reindexed. Not only the child products, but also parent products. This is already the case in 2.2-develop. --- .../CatalogInventory/Model/Indexer/Stock/AbstractAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogInventory/Model/Indexer/Stock/AbstractAction.php b/app/code/Magento/CatalogInventory/Model/Indexer/Stock/AbstractAction.php index cd4a3b440ab7c..5b44b56f26eb0 100644 --- a/app/code/Magento/CatalogInventory/Model/Indexer/Stock/AbstractAction.php +++ b/app/code/Magento/CatalogInventory/Model/Indexer/Stock/AbstractAction.php @@ -248,7 +248,7 @@ protected function _reindexRows($productIds = []) } } - $this->cacheContext->registerEntities(Product::CACHE_TAG, $productIds); + $this->cacheContext->registerEntities(Product::CACHE_TAG, $processIds); $this->eventManager->dispatch('clean_cache_by_tags', ['object' => $this->cacheContext]); return $this;