Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
I'm trying to switch off caching in referenceBlock.
<argument name="cacheable" xsi:type="boolean">false</argument>
<referenceBlock name="wp.homepage.view" cacheable="false"/>
But none of this is working
32.3k1818 gold badges8383 silver badges135135 bronze badges
asked Aug 1, 2016 at 7:27
Jan EkJan Ek
3144 bronze badges
You have to define
<referenceBlock>. According to the README for the core PageCache module:
Blocks can also be set as non-cacheable by setting the 'cacheable' attribute in layout XML files.
<block class="Block\Class" name="blockname" cacheable="false" />. Pages containing such blocks are not cached.
<block class="Package\Module\Block\Test" name="block.name" template="Package_Module::test.phtml" cacheable="false"/>
The referenceBlock tag does not support the cacheable attribute.
answered Aug 1, 2016 at 7:38
Rakesh JesadiyaRakesh Jesadiya
41.9k1818 gold badges129129 silver badges181181 bronze badges