Timeline for Magento 2 EE : Need to remove one single block from cache
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 22, 2018 at 11:33 | comment | added | Daniel Ifrim |
Try to do a plugin on the block class that sets the block not to use cache. In the plugin the function aroundCacheLifetime should return null. Otherwise if it contains customer session data than implement the block/template with private content (section.xml, data provider class and a small knockout JS component). It's easier than it looks. There is an easy and good example here: devdocs.magento.com/guides/v2.1/extension-dev-guide/cache/…
|
|
Feb 22, 2018 at 10:34 | comment | added | Dhaval Vaghela | I just want to one phtml remove from the cache . and this html file call into header container. any idea please let me know | |
Feb 19, 2018 at 13:02 | history | edited | Daniel Ifrim | CC BY-SA 3.0 |
added 509 characters in body
|
Feb 19, 2018 at 12:56 | history | answered | Daniel Ifrim | CC BY-SA 3.0 |