Expand my Community achievements bar.

SOLVED

Dynamic Component on Dynamic Page Caching

Avatar

Level 5

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

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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. 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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. 

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?