Skip to content

Commit ccc4301

Browse files
committed
MC-20533: Large amount of Block Cache.
1 parent 4e3da15 commit ccc4301

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

app/code/Magento/Swatches/Block/Product/Renderer/Listing/Configurable.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Magento\Catalog\Helper\Product as CatalogProduct;
1010
use Magento\Catalog\Model\Product;
1111
use Magento\Catalog\Model\Layer\Resolver;
12-
use Magento\Catalog\Model\Layer\Category as CategoryLayer;
1312
use Magento\ConfigurableProduct\Helper\Data;
1413
use Magento\ConfigurableProduct\Model\ConfigurableAttributeData;
1514
use Magento\Customer\Helper\Session\CurrentCustomer;
@@ -154,7 +153,7 @@ public function getJsonConfig()
154153
$this->unsetData('allow_products');
155154
return parent::getJsonConfig();
156155
}
157-
156+
158157
/**
159158
* Composes configuration for js price format
160159
*
@@ -257,16 +256,4 @@ private function getLayeredAttributesIfExists(Product $configurableProduct, arra
257256

258257
return $layeredAttributes;
259258
}
260-
261-
/**
262-
* @inheritdoc
263-
*/
264-
public function getCacheKeyInfo()
265-
{
266-
$cacheKeyInfo = parent::getCacheKeyInfo();
267-
/** @var CategoryLayer $catalogLayer */
268-
$catalogLayer = $this->layerResolver->get();
269-
$cacheKeyInfo[] = $catalogLayer->getStateKey();
270-
return $cacheKeyInfo;
271-
}
272259
}

0 commit comments

Comments
 (0)