2

I need your help. I tried so many times to disable product view...

I modified the addtocart.phtml and need to uncached to work, (when cache is enabled is not working ok) now i have to left the web page cache disable and obviously is too slowly

<block class="Magento\Catalog\Block\Product\View" 
       name="product.info.addtocart.additional"
       as="product.info.addtocart"
       template="product/view/addtocart.phtml"
       cacheable="false" />                         

I read a lot in forums but i can't find the real problem, i know with this cacheable="false" its not the best way because all the page was uncached, but at least all the rest of the web will ride fast.

Can you help me please?

2
0

If using cacheable="false", the whole page will be uncached. The performance will be impacted significantly. Try to use another way(should use Ajax to load dynamic data).

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.