Skip to content

Commit 0d875e5

Browse files
ENGCOM-995: [Forwardport] Fix $useCache for container child blocks #14214
- Merge Pull Request #14214 from rostyslav-hymon/magento2:2.3-develop-PR-port-14029 - Merged commits: 1. 7220d81
2 parents 447a24d + 7220d81 commit 0d875e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/View/Layout.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public function renderNonCachedElement($name)
533533
} elseif ($this->isBlock($name)) {
534534
$result = $this->_renderBlock($name);
535535
} else {
536-
$result = $this->_renderContainer($name);
536+
$result = $this->_renderContainer($name, false);
537537
}
538538
} catch (\Exception $e) {
539539
if ($this->appState->getMode() === AppState::MODE_DEVELOPER) {
@@ -575,14 +575,15 @@ protected function _renderUiComponent($name)
575575
* Gets HTML of container element
576576
*
577577
* @param string $name
578+
* @param bool $useCache
578579
* @return string
579580
*/
580-
protected function _renderContainer($name)
581+
protected function _renderContainer($name, $useCache = true)
581582
{
582583
$html = '';
583584
$children = $this->getChildNames($name);
584585
foreach ($children as $child) {
585-
$html .= $this->renderElement($child);
586+
$html .= $this->renderElement($child, $useCache);
586587
}
587588
if ($html == '' || !$this->structure->getAttribute($name, Element::CONTAINER_OPT_HTML_TAG)) {
588589
return $html;

0 commit comments

Comments
 (0)