Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top