문제

Refering to this piece of docs: http://devdocs.magento.com/guides/v2.1/config-guide/cache/cache-priv-priv.html, is it possible to put some private content into page which is public and it will not make whole page not cacheable? In other words to reload only PART of page dynamically, not invalidating a cache? Is it the way from docs above?

도움이 되었습니까?

해결책

For generate customer private data you need to use CustomerData sections and rendering private html content on client side using data, provided by CustomerData sections or loaded via AJAX, as described in the DevDocs.

There are some modules, which successfully use this mechanism:

  • Wishlist
  • Product Compare
  • Sales
  • Checkout
  • Review
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top