Skip to content

Commit 4504c5b

Browse files
ENGCOM-1979: Fix false cache_lifetime usage in xml layouts #16086
- Merge Pull Request #16086 from Atwix/magento2:FixFalseCacheLifetimeUsage_2_2 - Merged commits: 1. 7fec991
2 parents 38d7977 + 7fec991 commit 4504c5b

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)