Expand my Community achievements bar.

SOLVED

Event Handler to cache flush on AEM Pages

Avatar

Level 4

Hi @All,

 

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Please refer :
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalid...

 

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Please refer :
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalid...

 

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

Avatar

Community Advisor

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/