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.


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 – Rajat Johri Sep 16 '17 at 19:00
  • you did not specify this in the question, but I edited your question. – St3phan Sep 16 '17 at 20:57
  • can anyone help me in this – Rajat Johri Sep 17 '17 at 14:49
  • what about magento.stackexchange.com/a/131837/46716 ? – Gediminas Jan 4 '18 at 14:55

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.