Dynamic Component on Dynamic Page Caching

Avatar

Avatar
Boost 10
Level 3
Sean-McK
Level 3

Likes

10 likes

Total Posts

51 posts

Correct reply

3 solutions
Top badges earned
Boost 10
Affirm 3
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Boost 10
Level 3
Sean-McK
Level 3

Likes

10 likes

Total Posts

51 posts

Correct reply

3 solutions
Top badges earned
Boost 10
Affirm 3
Validate 1
Ignite 5
Ignite 3
View profile
Sean-McK
Level 3

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 (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
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. 

Answers (0)