When i flush the cache the navigation menu disappears. I can get it back by changing the theme and then changing it back.
This is added to
Magento_Theme/layout folder of my custom theme.
<referenceBlock name="store.menu"> <block class="Ves\Megamenu\Block\Menu" name="catalog.topnav" template="Ves_Megamenu::topmenu.phtml" cacheable="true"> <arguments> <argument name="alias" xsi:type="string">menu-top</argument> <argument name="cacheable" xsi:type="string">true</argument> </arguments> </block> </referenceBlock>
This is a custom menu but seemed to work perfectly until recently. Initially it stopped when adding varnish until i removed the ttl attribute and then worked fine. Now however it's having this new strange behavior and am unsure when it started or how to debug at the moment.