3

I want to disable the cache of the price block in detail page. However, I cannot find a place to modify it. I try to add cacheable="false" in

module-catalog\view\base\layout\catalog_product_prices.xml

but it is still not working. Also, I try to override the class

module-catalog\Pricing\Render\FinalPriceBox.php

with

protected function getCacheLifetime()
{
    return null;
}

and it also cannot disable the cache.

Please help.

  • you can do that using XML block – Aasim Goriya Dec 19 '17 at 6:24
  • Why do you need to disable it? Can you give us more info? – Khoa TruongDinh Dec 19 '17 at 13:35
  • any update on this? – Rizwan Khan Oct 26 '18 at 10:28
  • Did you find a solution ? I am looking for several solutions. – Kévin Vuillemin Dec 17 '18 at 4:30
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review – Jai Dec 17 '18 at 5:01

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.