Skip to content

Commit 9322417

Browse files
MAGETWO-64669: Performance degradation for bundle product if price view set as from..to
1 parent 003771d commit 9322417

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/Pricing/Price/BundleOptionPrice.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ public function getOptions()
109109
*/
110110
public function getOptionSelectionAmount($selection)
111111
{
112-
$cacheKey = implode('_',
112+
$cacheKey = implode(
113+
'_',
113114
[
114115
$this->product->getId(),
115116
$selection->getOptionId(),
116117
$selection->getSelectionId()
117118
]
118119
);
120+
119121
if (!isset($this->optionSelecionAmountCache[$cacheKey])) {
120122
$selectionPrice = $this->selectionFactory
121123
->create($this->product, $selection, $selection->getSelectionQty());

0 commit comments

Comments
 (0)