Clear dispatcher cache programmatically from publisher in AEM 6.x | Community
Skip to main content
Level 2
April 22, 2022

Clear dispatcher cache programmatically from publisher in AEM 6.x

  • April 22, 2022
  • 3 replies
  • 2346 views


Hello Community.
First time here 🙂
We have a requirement in which we need to clear dispatcher cache without publishing the page. We tried flush service options but it is not working for us. Looking for solution options to achieve this.

Thank you

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

3 replies

DEBAL_DAS
New Member
April 22, 2022

When do you want to clear the cache programmatically? Please brief us about the event in publish instance based on that you want to clear the cache programmatically.

Debal Das, Senior AEM Consultant
ts10Author
Level 2
April 22, 2022

The solution is supposed to work by updating the cache often with  json-ld markup. These updates happen very dynamically and often too. Because of this, it is not feasible to publish the page manually so often. 
So, it is important that we are able to invalidate the dispatcher cache for content dynamically generated by our AEM connector. 
Did I explain clearly?

Ravi_Pampana
Community Advisor
Community Advisor
April 22, 2022

Hi,

 

You can set dispatcher to have a ttl, check the below link

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-ttl/index.html

 

ts10Author
Level 2
April 25, 2022

Thank you for the feedback. We will try to se what works best.

arunpatidar
Community Advisor
Community Advisor
April 25, 2022
Arun Patidar
ts10Author
Level 2
April 25, 2022

Thanks a lot. I will try this.