سؤال

I am having an issue with breadcrumbs on Magento EE 1.11.2.0

The problem is: when multiple pages are being processed by FPC the CMS page picks up breadcrumb title from another page.

e.g. if http://www.domain.com/cms-page and http://www.domain.com/category.html were loading together in different tabs

the CMS page will show Home / Category Name instead of Home / CMS Page breadcrumb.

If FPC is disabled everything works correctly. I debugged the code and the variables are picking up correct breadcrumb however when the page is rendered from cache it picks up incorrect breadcrumb.

The problem seems to lie in FPC but I am unable to identify the exact problem or its solution.

Any help would be highly appreciated.

هل كانت مفيدة؟

المحلول

I had tried a lot of different things but none of them seemed to override Breadcrumbs block. It was still being cached by FPC.

So here is the solution which i implemented to fix my issues:

  1. Created a new extension named CacheBust which overrides BREADCRUMBS_BLOCK and than modifies getCacheKeyInfo function
  2. Added microtime() in getCacheKeyInfo() to avoid it from being cached

Download Full Extension

Just paste the code in your app, clear Config, FPC, Block caches and its ready to be used.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top