Skip to content

Commit 7fec991

Browse files
author
Yuriy Tkachenko
committed
Fix false cache_lifetime usage in xml layouts
1 parent 38d7977 commit 7fec991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ protected function getCacheLifetime()
10741074

10751075
$cacheLifetime = $this->getData('cache_lifetime');
10761076
if (false === $cacheLifetime || null === $cacheLifetime) {
1077-
return $cacheLifetime;
1077+
return null;
10781078
}
10791079

10801080
return (int)$cacheLifetime;

0 commit comments

Comments
 (0)