I've got in a custom module created on module/view/frontend/layout/default.xml
with:
<block class="\Magento\Framework\View\Element\Template" template="sample:module::sampletemplate.phtml" name="sampleblock" cacheable="false" _isScopePrivate="true"/>
I think that if i put the cacheable="false"
to dont let the block to be cached, but it's not working.
How could i could remove cache of this block?