Event Handler to cache flush on AEM Pages | Community
Skip to main content
imadullakhan
Level 3
Oct 28, 2022 9:51 AM UTC
Solved

Event Handler to cache flush on AEM Pages

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.
milind_bachani
milind_bachaniAccepted solution
Employee
Oct 28, 2022 11:14 AM UTC

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

Saravanan_Dharmaraj
New Participant
Oct 28, 2022 3:17 PM UTC

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/ 

Translate
milind_bachani
milind_bachaniAccepted solution
Employee
Oct 28, 2022 11:14 AM UTC

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

Translate