> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weltpixel.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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:

1. Open the file:  
   `/vendor/magento/module-theme/view/frontend/layout/default.xml`

2. Locate the following line:  

   `ttl="3600"`

3. Remove the `ttl="3600"` attribute and save the file.  

After this change, the navigation menu should reappear.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/4/b/a/14bada3512958500/4d54e52b-d53e-4451-a186-f64b15_10zts6j.png)



## Reference

For more details, see the official Magento GitHub issue:  
[Magento 2 Issue #3421](https://github.com/magento/magento2/issues/3421)