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 c166940 commit 53c7321Copy full SHA for 53c7321
app/code/Magento/Theme/Block/Html/Footer.php
@@ -57,7 +57,6 @@ protected function _construct()
57
{
58
$this->addData(
59
[
60
- 'cache_lifetime' => false,
61
'cache_tags' => [\Magento\Store\Model\Store::CACHE_TAG, \Magento\Cms\Model\Block::CACHE_TAG],
62
]
63
);
@@ -123,4 +122,14 @@ public function getIdentities()
123
122
124
return [\Magento\Store\Model\Store::CACHE_TAG, \Magento\Cms\Model\Block::CACHE_TAG];
125
}
+
126
+ /**
127
+ * Get block cache life time
128
+ *
129
+ * @return int
130
+ */
131
+ protected function getCacheLifetime()
132
+ {
133
+ return parent::getCacheLifetime() ?: 3600;
134
+ }
135
0 commit comments