I want to clear full page caching on my custom product listing page in my module if any product get out of stock. Actually I need to show "out of stock" label on the products that are not in stock but that is not happening due to full page caching and I cannot turn caching off also as it would slow down my page.

1 Answer 1


You must clear "Block HTML Output", "Collections Data" and "Page Cache". https://goo.gl/w5gaXB

  • actually I want to do it programmatically not manually...if anyone could throw some light on cache tags and cache validation key etc Sep 16, 2017 at 19:00
  • you did not specify this in the question, but I edited your question.
    – St3phan
    Sep 16, 2017 at 20:57
  • can anyone help me in this Sep 17, 2017 at 14:49
  • what about magento.stackexchange.com/a/131837/46716 ?
    – Gediminas
    Jan 4, 2018 at 14:55

Your Answer

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

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