Navigation / Mega menu missing when Varnish Cache is activated with Magento 2
In some cases, when Varnish Cache is activated, the navigation/mega menu may disappear.
This occurs due to a known Magento 2 + Varnish issue.
Solution
To fix this, you need to remove the TTL attribute from Magento’s default layout file:
- Open the file:
/vendor/magento/module-theme/view/frontend/layout/default.xml
- Locate the following line:
ttl="3600"
- Remove the
ttl="3600"attribute and save the file.
After this change, the navigation menu should reappear.

Reference
For more details, see the official Magento GitHub issue:
Updated on: 16/09/2025
Thank you!
