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


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



protected function getCacheLifetime()
    return null;

and it also cannot disable the cache.

Please help.

  • you can do that using XML block Dec 19, 2017 at 6:24
  • Why do you need to disable it? Can you give us more info? Dec 19, 2017 at 13:35
  • any update on this? Oct 26, 2018 at 10:28
  • Did you find a solution ? I am looking for several solutions. Dec 17, 2018 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
    – Jarnail S
    Dec 17, 2018 at 5:01


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.