Magento 2.3 cache menu on homepageHow to disable the cache for the block in Magento 2?The path Problem in menu product at checkout/cart pageHow to remove an specific href from a top-menu link in magento?Need a fix to “Page blocks cache” in Magento CE 1.9.0.1Menu contents not displaying on mobile on Main page onlyMagento : disable cache for static blockMagento 2: Top Nav Menu is not appearing in Home PageMagento 2 : Menu does not appear on home pageMagento 2.3 “Review & Payments” page not loadingCategory Menu Missing from homepage after upgradeMagento 2.3 wrong image cache generation

How do people drown while wearing a life jacket?

speaker impedence

When did J.K. Rowling decide to make Ron and Hermione a couple?

Plotting Chebyshev polynomials using PolarPlot and FilledCurve

How to trick a fairly simplistic kill-counter?

How to compare files with diffrent extensions and delete extra files?

Misrepresentation on DS-160

A way of getting tenure for a non-creative person

Move label of an angle in Tikz

Were there any unmanned expeditions to the moon that returned to Earth prior to Apollo?

Selecting rows conflicting values in WHERE clause

What is the difference between "logical equivalence" and "material equivalence"?

How can a class have multiple methods without breaking the single responsibility principle

What do the screens say after you are set free?

Why are prop blades not shaped like household fan blades?

How to get maximum number that newcount can hold?

Adding a (stair/baby) gate without facing walls

How did Biff return to 2015 from 1955 without a lightning strike?

Could flaps be raised upward to serve as spoilers / lift dumpers?

Applied Meditation

"Fewer errors means better products" or "Fewer errors mean better products"?

Ernie and the Superconducting Boxes

Should I take up a Creative Writing online course?

Export economy of Mars



Magento 2.3 cache menu on homepage


How to disable the cache for the block in Magento 2?The path Problem in menu product at checkout/cart pageHow to remove an specific href from a top-menu link in magento?Need a fix to “Page blocks cache” in Magento CE 1.9.0.1Menu contents not displaying on mobile on Main page onlyMagento : disable cache for static blockMagento 2: Top Nav Menu is not appearing in Home PageMagento 2 : Menu does not appear on home pageMagento 2.3 “Review & Payments” page not loadingCategory Menu Missing from homepage after upgradeMagento 2.3 wrong image cache generation






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















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?



3



Thanks










share|improve this question


























  • have you tried in private window?

    – Mohit Rane
    Jul 24 at 4:54

















1















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?



3



Thanks










share|improve this question


























  • have you tried in private window?

    – Mohit Rane
    Jul 24 at 4:54













1












1








1








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?



3



Thanks










share|improve this question
















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?



3



Thanks







magento2.3 cache menu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 24 at 5:34









Faisal Sheikh

3511 silver badge11 bronze badges




3511 silver badge11 bronze badges










asked Jul 24 at 4:49









ATTATT

335 bronze badges




335 bronze badges















  • have you tried in private window?

    – Mohit Rane
    Jul 24 at 4:54

















  • have you tried in private window?

    – Mohit Rane
    Jul 24 at 4:54
















have you tried in private window?

– Mohit Rane
Jul 24 at 4:54





have you tried in private window?

– Mohit Rane
Jul 24 at 4:54










1 Answer
1






active

oldest

votes


















0














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="MagentoThemeBlockHtmlHeader" name="themes_header" template="html/header.phtml" cacheable="false" before="-">






share|improve this answer

























  • 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.

    – Kanhaiya lal
    Jul 24 at 6:14











  • we just put only in menu.nav block not for whole site or any .phtml

    – Anas Mansuri
    Jul 24 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.

    – Kanhaiya lal
    Jul 24 at 6:19












  • for detail reference follow this link magento.stackexchange.com/a/103319/52244

    – Kanhaiya lal
    Jul 24 at 6:21











  • Thank both of you. So I'm still waiting for the best solution.

    – ATT
    Jul 24 at 7:22













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f283076%2fmagento-2-3-cache-menu-on-homepage%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














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="MagentoThemeBlockHtmlHeader" name="themes_header" template="html/header.phtml" cacheable="false" before="-">






share|improve this answer

























  • 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.

    – Kanhaiya lal
    Jul 24 at 6:14











  • we just put only in menu.nav block not for whole site or any .phtml

    – Anas Mansuri
    Jul 24 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.

    – Kanhaiya lal
    Jul 24 at 6:19












  • for detail reference follow this link magento.stackexchange.com/a/103319/52244

    – Kanhaiya lal
    Jul 24 at 6:21











  • Thank both of you. So I'm still waiting for the best solution.

    – ATT
    Jul 24 at 7:22















0














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="MagentoThemeBlockHtmlHeader" name="themes_header" template="html/header.phtml" cacheable="false" before="-">






share|improve this answer

























  • 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.

    – Kanhaiya lal
    Jul 24 at 6:14











  • we just put only in menu.nav block not for whole site or any .phtml

    – Anas Mansuri
    Jul 24 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.

    – Kanhaiya lal
    Jul 24 at 6:19












  • for detail reference follow this link magento.stackexchange.com/a/103319/52244

    – Kanhaiya lal
    Jul 24 at 6:21











  • Thank both of you. So I'm still waiting for the best solution.

    – ATT
    Jul 24 at 7:22













0












0








0







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="MagentoThemeBlockHtmlHeader" name="themes_header" template="html/header.phtml" cacheable="false" before="-">






share|improve this answer













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="MagentoThemeBlockHtmlHeader" name="themes_header" template="html/header.phtml" cacheable="false" before="-">







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 24 at 5:39









Anas MansuriAnas Mansuri

1,2232 silver badges16 bronze badges




1,2232 silver badges16 bronze badges















  • 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.

    – Kanhaiya lal
    Jul 24 at 6:14











  • we just put only in menu.nav block not for whole site or any .phtml

    – Anas Mansuri
    Jul 24 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.

    – Kanhaiya lal
    Jul 24 at 6:19












  • for detail reference follow this link magento.stackexchange.com/a/103319/52244

    – Kanhaiya lal
    Jul 24 at 6:21











  • Thank both of you. So I'm still waiting for the best solution.

    – ATT
    Jul 24 at 7:22

















  • 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.

    – Kanhaiya lal
    Jul 24 at 6:14











  • we just put only in menu.nav block not for whole site or any .phtml

    – Anas Mansuri
    Jul 24 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.

    – Kanhaiya lal
    Jul 24 at 6:19












  • for detail reference follow this link magento.stackexchange.com/a/103319/52244

    – Kanhaiya lal
    Jul 24 at 6:21











  • Thank both of you. So I'm still waiting for the best solution.

    – ATT
    Jul 24 at 7:22
















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.

– Kanhaiya lal
Jul 24 at 6:14





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.

– Kanhaiya lal
Jul 24 at 6:14













we just put only in menu.nav block not for whole site or any .phtml

– Anas Mansuri
Jul 24 at 6:16





we just put only in menu.nav block not for whole site or any .phtml

– Anas Mansuri
Jul 24 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.

– Kanhaiya lal
Jul 24 at 6:19






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.

– Kanhaiya lal
Jul 24 at 6:19














for detail reference follow this link magento.stackexchange.com/a/103319/52244

– Kanhaiya lal
Jul 24 at 6:21





for detail reference follow this link magento.stackexchange.com/a/103319/52244

– Kanhaiya lal
Jul 24 at 6:21













Thank both of you. So I'm still waiting for the best solution.

– ATT
Jul 24 at 7:22





Thank both of you. So I'm still waiting for the best solution.

– ATT
Jul 24 at 7:22

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f283076%2fmagento-2-3-cache-menu-on-homepage%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown