Skip to content

Commit 4419fb5

Browse files
MAGETWO-64669: Performance degradation for bundle product if price view set as from..to
1 parent 524aec6 commit 4419fb5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ public function getOptions()
109109
*/
110110
public function getOptionSelectionAmount($selection)
111111
{
112-
$cacheKey = implode('_', [$this->product->getId(), $selection->getOptionId()]);
112+
$cacheKey = implode('_',
113+
[
114+
$this->product->getId(),
115+
$selection->getOptionId(),
116+
$selection->getSelectionId()
117+
]
118+
);
113119
if (!isset($this->optionSelecionAmountCache[$cacheKey])) {
114120
$selectionPrice = $this->selectionFactory
115121
->create($this->product, $selection, $selection->getSelectionQty());

0 commit comments

Comments
 (0)