Navigation menu not showing when Varnish Cache is activated

Written by Jigar Patel

Mar 27, 2021

Navigation menu not showing  when Varnish Cache is activated

Varnish Cache is an open-source web application accelerator (also referred to as an HTTP accelerator or caching HTTP reverse proxy). Varnish stores (or caches) files or fragments of files in memory; this enables Varnish to reduce the response time and network bandwidth consumption on future, equivalent requests. Unlike web servers like Apache and Nginx, Varnish was designed for use exclusively with the HTTP protocol.

In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear. 

In order to solve this Magento issue, you can remove the TTL attribute (remove ttl=”3600″) from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.

Jigar Patel

Author

We can help you with

  • Dedicated Team
  • Setup Extended Team
  • Product Development
  • Custom App Development

Schedule a Developer Interview And Get 7 Days Risk-Free Trial

Fill out the form below, and one of our technical experts will reach out to you within 12 hours.

    Google
    |

    4.8

    Google
    |

    4.8

    Google
    |

    4.9

    Google
    |

    4.8

    Google
    |

    4.9

    Copyright © 2024 DOLPHIN WEB SOLUTION. All rights reserved.

    ×

    Hello!

    Click one of our contacts below to chat on WhatsApp

    × How can I help you?
    TO TOP