Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm having problems with cacheing a block in Magento 2. The theme I'm using is getting content for the block via an AJAX call.
Is it possible and if so, how to cache such a block in M2?
Every block in magento2 is by default cacheable. You can disable cacheing of that block by explicitly adding cacheable="false" as the block attribute. Can you make sure that this attribute is not added anywhere for this particular block
Required, but never shown