Event Handler to cache flush on AEM Pages | Community
Skip to main content
imadullakhan
Level 3
October 28, 2022
Solved

Event Handler to cache flush on AEM Pages

  • October 28, 2022
  • 2 replies
  • 946 views

Hi @1905403,

 

Can anyone please help me to get the Event Handler logic to clear the dispatcher cache via programmatically. Event Handler or Even Listener anything is fine.

 

Thanks,

Imad

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 milind_bachani

Please refer :
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en

 

Note: This has to based on a event which will trigger the invalidation.

 

If you are NOT using AEM Cloud Service and are using ACS commons you can use this :
https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-ui/index.html

Thanks,

Milind

2 replies

milind_bachani
Adobe Employee
milind_bachaniAdobe EmployeeAccepted solution
Adobe Employee
October 28, 2022

Please refer :
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en

 

Note: This has to based on a event which will trigger the invalidation.

 

If you are NOT using AEM Cloud Service and are using ACS commons you can use this :
https://adobe-consulting-services.github.io/acs-aem-commons/features/dispatcher-flush-ui/index.html

Thanks,

Milind

Saravanan_Dharmaraj
Community Advisor
Community Advisor
October 28, 2022

Below is the one the example of page listener which uses DispatcheFlusher Service from ACS Commons to flush the cache.

 

https://aemhints.com/2020/11/08/resource-listener-to-flush-cache-in-aem-6-5/ 

 

Event Handler: https://aemhints.com/2020/11/08/event-listener-in-aem-6-5/