Skip to content

Commit cb96e87

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,12 @@ private function getLayeredAttributesIfExists(Product $configurableProduct, arra
241241

242242
$layeredAttributes = [];
243243

244-
$configurableAttributes = array_map(function ($attribute) {
245-
return $attribute->getAttributeCode();
246-
}, $configurableAttributes);
244+
$configurableAttributes = array_map(
245+
function ($attribute) {
246+
return $attribute->getAttributeCode();
247+
},
248+
$configurableAttributes
249+
);
247250

248251
$commonAttributeCodes = array_intersect(
249252
$configurableAttributes,

0 commit comments

Comments
 (0)