コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
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. 

元の投稿で解決策を見る

2 返信

Avatar

正解者
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

Employee
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?