I just want to know what to use instead of "cacheable=false" as I have found more of the blogs for this not to use because of full page cache, so I just want to know what is proper method.

I have called custom phtml through layout .xml file with core block of magento 2 as below: for .e.g.

<block class="Magento\Framework\View\Element\Template" cacheable=false name="test_file" template="Magento_Theme::html/test.phtml"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.