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 0a3fbc9 commit f591017Copy full SHA for f591017
app/code/Magento/Theme/Block/Html/Topmenu.php
@@ -49,7 +49,6 @@ public function __construct(
49
TreeFactory $treeFactory,
50
array $data = []
51
) {
52
- $this->setCacheLifetime(30 * 60);
53
parent::__construct($context, $data);
54
$this->_menu = $nodeFactory->create(
55
[
@@ -60,6 +59,16 @@ public function __construct(
60
59
);
61
}
62
+ /**
63
+ * Get block cache life time
64
+ *
65
+ * @return int
66
+ */
67
+ protected function getCacheLifetime()
68
+ {
69
+ return parent::getCacheLifetime() ?: 3600;
70
+ }
71
+
72
/**
73
* Get top menu html
74
*
0 commit comments