We use a third party extension wich lets us add bundles with specific discounts to product pages. The problem is that they added a default.xml with the following code:
<block class="Magedelight\Bundlediscount\Block\Toplink" name="add.bundlediscount.top" ifconfig="bundlediscount/general/enable_link" after="-" cacheable="false"/>
Magento seems to ignore the
ifconfig part of the code and just always caches the entire page, after some research i found someone stating that Magento 2 just scans the layouts for a
cacheable="false" tag and if found busts the cache for the entire page.
i tried the following:
<referenceBlock name="add.bundlediscount.top" cacheable="true" />
with no result the true value doesn't seem to update the availability of the tag
i also tried the following:
<referenceBlock name="add.bundlediscount.top" remove="true" />
In the hope of removing the entire block and the snippet that blocks the entire store from being cached, but to no avail.
The question is, is there a way to update the code from my theme or is the only way to comment the code in the extension directly?