GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

Breadcrumb is cached when approaching directly. #343

Open supportnubix opened 5 years ago

supportnubix commented 5 years ago

We're running into issue with the breadcrumbs being cached somehow, shouldn't this not be cached out of the box?

Reproduction ( I could give live environment information if needed through private messaging ) are as followed: If for example we visit a product through a direct link: example.com/product1 by copying the URL and navigating to a incognito browser we see that the breadcrumb is as "Home/Product" which is the expected result.

However if someone else now visits the website and navigates to this exact same product but instead of using a direct URL, they're navigating through the category list, we would expect the breadcrumb to be "Home / Category / Sub category / Product" but it stays as "Home/Product" but it is "Home / product" again.

However; When we clean the FPC cache, and do the same steps as above in the opposite direction, we also get the opposite result: We clean cache. Navigate through "Product" by using the category navigation, we see that it's correct and shows "Home / Category / Sub Category / Product" Use another browser/system and navigate to the URL directly instead of using navigation, and you see the incorrect information "Home / Category / Sub category / Product"

Any way we can fix this easily? The breadcrumb should never be cached in this matter. We also tried adding "breadcrumbs" block to Lazy load, which made it dissapear. We've also added it to Dynamic blocks but this also made it dissapear. Are we doing something wrong or is this potentially a bug?