Skip to content

Commit b396993

Browse files
committed
ACP2E-134: cache is cleared for the product and categories after an order is placed
1 parent c6aeb6a commit b396993

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/Stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function __construct(
5454
public function execute($ids)
5555
{
5656
$this->_productStockIndexerRows->execute($ids);
57-
$this->getCacheContext()->registerEntities(\Magento\Catalog\Model\Product::CACHE_TAG, $ids);
5857
}
5958

6059
/**
@@ -102,6 +101,7 @@ public function executeRow($id)
102101
*
103102
* @return \Magento\Framework\Indexer\CacheContext
104103
* @deprecated 100.0.7
104+
* @see we don't add dependecies this way anymore
105105
*/
106106
protected function getCacheContext()
107107
{

app/code/Magento/CatalogInventory/etc/mview.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,4 @@
1414
<table name="catalog_product_link" entity_column="product_id" />
1515
</subscriptions>
1616
</view>
17-
<view id="catalog_product_price" class="Magento\Catalog\Model\Indexer\Product\Price" group="indexer">
18-
<subscriptions>
19-
<table name="cataloginventory_stock_item" entity_column="product_id" />
20-
</subscriptions>
21-
</view>
2217
</config>

app/code/Magento/CatalogSearch/etc/mview.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<table name="catalog_product_entity_varchar" entity_column="entity_id" />
1616
<table name="catalog_product_entity_datetime" entity_column="entity_id" />
1717
<table name="catalog_product_website" entity_column="product_id" />
18-
<table name="cataloginventory_stock_item" entity_column="product_id" />
1918
<table name="catalog_product_bundle_selection" entity_column="parent_product_id" />
2019
<table name="catalog_product_super_link" entity_column="product_id" />
2120
<table name="catalog_product_link" entity_column="product_id" />

0 commit comments

Comments
 (0)