Skip to content

Commit d4d19ba

Browse files
mattkrupnikglo63652
authored andcommitted
Set default cache life time value 86400
1 parent 91cb4d4 commit d4d19ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,12 +1101,12 @@ protected function getCacheTags()
11011101
protected function getCacheLifetime()
11021102
{
11031103
if (!$this->hasData('cache_lifetime')) {
1104-
return null;
1104+
return 86400;
11051105
}
11061106

11071107
$cacheLifetime = $this->getData('cache_lifetime');
11081108
if (false === $cacheLifetime || null === $cacheLifetime) {
1109-
return null;
1109+
return 86400;
11101110
}
11111111

11121112
return (int)$cacheLifetime;

0 commit comments

Comments
 (0)