سؤال

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