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
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 Commented Sep 16, 2017 at 19:00
-
you did not specify this in the question, but I edited your question.– St3phanCommented Sep 16, 2017 at 20:57
-
-