Purging CDN cache in AEMaCs (Using Adobe CDN) | Community
Skip to main content
August 2, 2024

Purging CDN cache in AEMaCs (Using Adobe CDN)

  • August 2, 2024
  • 2 replies
  • 899 views

Hi All,

 

I am trying to purge CDN Cache via aemcs. I do not get complete information in this document.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/content-delivery/cdn-cache-purge#surrogate-key-purge

Could someone guide me with steps to purge CDN Cache? Can I purge directly by configuring pipeline in cloud Manager or do i need to run curl scripts manually to clear cache and what is the recommended way? 

 

Thank you for your support.

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

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 2, 2024

Hi, 

The Adobe CDN is not flushed automatically because the best practice is to use TTLs (Time-To-Live) to manage cache invalidation in the CDN. The documentation you are referring to is intended for scenarios where bypassing TTLs and manually flushing the CDN cache may be necessary. Flushing the cache is a sensitive task, so I highly recommend reading this article that explains the process: My View on Manual Cache Flushing.

 

That being said, this is a new feature that cannot be integrated into the Cloud Manager pipeline. You should handle this task yourself, either manually or by automating it, but the choice is yours. The recommended approach is to rely on TTLs, as explained, rather than manually flushing the cache using this method. However, if you really need to flush the CDN, keep the scope as narrow as possible. You could use the Cloud Manager Events from I/O Events to trigger a "process" that runs this command for you.

 

[1]. https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/content-delivery/caching 

 

Hope this helps

Esteban Bustamante
ssd89Author
August 6, 2024

Hi EstebanBustamante,

Thank you for your response.

Our goal is to clear CDN cache on demand whenever there is a need.

I'm still unclear about the documentation: should I run curl commands locally to achieve this, or is there a better approach? Additionally, I don't understand how CDN config YAML files relate to cache purging if curl commands can be used directly. More information would be greatly appreciated.

Thank you again for your support.

kautuk_sahni
Community Manager
Community Manager
August 7, 2024

@ssd89 Did you find the suggestions from users 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