We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed631d commit e908e6cCopy full SHA for e908e6c
lib/internal/Magento/Framework/Pricing/Render/PriceBox.php
@@ -86,7 +86,12 @@ public function getCacheKey()
86
*/
87
protected function getCacheLifetime()
88
{
89
- return parent::hasCacheLifetime() ? parent::getCacheLifetime() : self::DEFAULT_LIFETIME;
+ if ($this->hasData('cache_lifetime')) {
90
+ $cacheLifeTime = $this->getData('cache_lifetime');
91
+ return (int)$cacheLifeTime;
92
+ } else {
93
+ return parent::hasCacheLifetime()? parent::getCacheLifetime() : null;
94
+ }
95
}
96
97
/**
0 commit comments