Dynamic Component on Dynamic Page Caching

Avatar

Avatar

Sean-McK

Avatar

Sean-McK

Sean-McK

15-12-2020

Hey All,

 

So I am trying to figure out the best solution to a problem I have. Here is the problem:

 

I have a page called product-page.sku1.html (this is a page that has a selector). It has a product details component with a model that pulls images from both magento and the dam. Out of box caches that page in dispatcher, if we added a image on either magento or even in the dam, it won't invalidate the cache. So even if I "publish" product-page (that is the page without the selector), it doesn't invalidate the page since product-page.sku1.html is on the dispatcher, and product-page.html isn't on the dispatcher. I took a look at Dynamic Include but the issue is that it put a path of /content/site/us/en/product-page.sku1/_jcr_content/root/container/pressreleases.nocache.html but that page doesn't exist in the publisher so that _jcr_content doesn't exist. The other option is to not cache any of the pages and always call to publisher (not great in so many levels). Is there a way I can tell the dispatcher to cache those pages only for lets say 5 or 10 min?

 

Thanks,

Sean

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

kunal23

MVP

Avatar

kunal23

MVP

kunal23
MVP

21-12-2020

Check this utility from Adobe ACS commons team - https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-rules/index.ht... 

This can solve your cache invalidation issue.