Skip to content

Commit fd332ed

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-37730: Cache is not updated when changing stock status using mass action
1 parent f97191e commit fd332ed

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogInventory/Model/Adminhtml/Stock

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogInventory/Model/Adminhtml/Stock/Item.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Magento\Framework\Api\AttributeValueFactory;
1313
use Magento\Framework\Api\ExtensionAttributesFactory;
1414
use Magento\Framework\Object\IdentityInterface;
15+
use Magento\Catalog\Model\Product;
1516

1617
/**
1718
* Catalog Inventory Stock Model for adminhtml area
@@ -131,7 +132,7 @@ public function getIdentities()
131132
{
132133
$tags = [];
133134
if ($this->getProductId()) {
134-
$tags[] = 'catalog_product_' . $this->getProductId();
135+
$tags[] = Product::CACHE_TAG . '_' . $this->getProductId();
135136
}
136137

137138
return $tags;

0 commit comments

Comments
 (0)