Clear entire dispatcher cache on AEM Cloud | Community
Skip to main content
AMANATH_ULLAH
Community Advisor
Community Advisor
June 23, 2024
Solved

Clear entire dispatcher cache on AEM Cloud

  • June 23, 2024
  • 3 replies
  • 1643 views

Folks,

Is there a way to clear entire dispatcher cache at a time on AEM as a cloud service 

Our requirement is to clear entire dispatcher cache instead of clearing it based on individual Paths

 

 

__PRESENT

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 aanchal-sikka

@amanath_ullah 

 

I hope you are considering both dispatcher and CDN.

 

For dispatcher cache, the cache can be cleared by running webtier pipeline. Which is deploying your code again.

 

For CDN, you can raise Adobe support ticket. They can clear all CDN cache. FOr resource-based CDN cache flush, they can provide you a key. This key can be used with Curl command.

3 replies

h_kataria
Community Advisor
Community Advisor
June 24, 2024

I think running a webtier pipeline clear the dispatcher cache on cloud.
Otherwise you can create something custom as mentioned here https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/content-delivery/caching#explicit-invalidation 

AMANATH_ULLAH
Community Advisor
Community Advisor
June 24, 2024

@h_kataria 

The link mentioned by you can clear cache for individual paths

I am looking for a solution to clear entire dispatcher cache in AEM cloud at once without specifying paths

 

Amanath Ullah
h_kataria
Community Advisor
Community Advisor
June 24, 2024

Yes, because as far as I know, there is no direct way to clear complete dispatcher cache apart from running the webtier pipeline. All other custom solutions provide path based invalidations only. One can also think in that direction if there are some specific paths which one has to target which can achieve the required goal in which case a custom solution like SCD or replication APIs can be implemented as clearing entire dispatcher cache is rather a rare scenario. 

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
June 24, 2024

@amanath_ullah 

 

I hope you are considering both dispatcher and CDN.

 

For dispatcher cache, the cache can be cleared by running webtier pipeline. Which is deploying your code again.

 

For CDN, you can raise Adobe support ticket. They can clear all CDN cache. FOr resource-based CDN cache flush, they can provide you a key. This key can be used with Curl command.

Aanchal Sikka
AMANATH_ULLAH
Community Advisor
Community Advisor
June 24, 2024

 

Thanks @aanchal-sikka 

Is there a way to flush entire dispatcher cache in AEM cloud programmatically without running the pipeline ? 

Amanath Ullah
aanchal-sikka
Community Advisor
Community Advisor
June 25, 2024

@amanath_ullah 

 

I am not aware, if its possible.

 

If you facing scenarios for complete dispatcher flush frequently, you should review Dispatcher caching strategy. It is also discussed on https://cqdump.joerghoh.de/2024/06/12/my-view-on-manual-cache-flushing/ , 

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
June 25, 2024

@amanath_ullah Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!  

Kautuk Sahni