Dynamic Component on Dynamic Page Caching | Community
Skip to main content
Sean-McK
New Participant
December 15, 2020
Solved

Dynamic Component on Dynamic Page Caching

  • December 15, 2020
  • 2 replies
  • 1476 views

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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

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

This can solve your cache invalidation issue. 

2 replies

jantzen_b
Employee
January 5, 2021
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?
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
December 21, 2020

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

This can solve your cache invalidation issue.