I met this case sometimes on Homepage. The menu was cached when I return Homepage from another category page.

Does anybody here have idea and solution for that?



  • have you tried in private window?
    – Mohit Rane
    Jul 24, 2019 at 4:54

1 Answer 1


The issue is full page cache issue, You can try with your menu block add this content in menu add cacheable="false" like this :

<block class="Magento\Theme\Block\Html\Header" name="themes_header" template="html/header.phtml" cacheable="false" before="-">

  • doing this to solve your problem but cacheable="false" is a big mistake, it will make entire page not to cache, if you mistakenly added in default handler then entire website will not cache. try to avoid use this. Jul 24, 2019 at 6:14
  • we just put only in menu.nav block not for whole site or any .phtml Jul 24, 2019 at 6:16
  • i guess you not seen how magento playing with layout xml files, magento merging all xml together so it surely impact respective pages where this menu.nav is coming, hope it help you to understand please don't mind, i just help you to not get in trouble. Jul 24, 2019 at 6:19
  • for detail reference follow this link magento.stackexchange.com/a/103319/52244 Jul 24, 2019 at 6:21
  • Thank both of you. So I'm still waiting for the best solution.
    – ATT
    Jul 24, 2019 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.