Flush Cache in Akamai

Avatar

Avatar

srinivasan_chan

Avatar

srinivasan_chan

srinivasan_chan

15-10-2015

Hi,

If any changes published then CQ Dispatcher cache have the latest published content but in Akamai it is having the old content, that means no information triggered to Akamai if any content is published, kindly can anyone help me how to write trigger that if any changes published then trigger to Akamai cache and flush the modified content and cache it.

Thanks and Regards,

Srinivasan.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

15-10-2015

Here is a reply from a Senior AEM Consultant on this:

**************************************************************************************************************

I don’t believe there is anything in the product to perform the cache flush requests for you, however my understanding is that Akamai does have a REST API and you can implement a call to that API from AEM.

Doing a quick search on google you can find a couple of different implementations [1][2] that people have shared.

It should also be possible to write a script that purges the Akamai cache and you can then invoke it from the dispatcher [3].

[1] http://www.velir.com/blog/index.php/2014/07/09/easily-integrate-akamai-into-adobe-cq-aem-with-velirs...

[2] http://www.cqblueprints.com/tipsandtricks/cache-flush-service.html

[3] https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Using custom invalidation scripts

Answers (2)

Answers (2)

Avatar

Avatar

Shubham_Saxena

Avatar

Shubham_Saxena

Shubham_Saxena

17-10-2019

In case anyone is looking for Java code to purge Akamai cache, you can refer below:

https://www.linkedin.com/pulse/akamai-cache-purge-aem-through-java-code-shubham-saxena/

Regards

Shubham

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.0K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.0K

Correct Reply

1.1K
Jörg_Hoh
Employee

15-10-2015

I addition what Scott wrote:
 

Purging Akamai caches via API calls can take time (minutes, sometimes up to an hour), so it isn't that usable just to purge a page. Instead use a TTL-based approach on Akamai. For example, when you allow Akamai to cache files for 10 minutes (using the regular cache headers), Akamai will fetch the files from its origin (your servers) every 10 minutes. This results in a maximum of 10 minutes until your new content gets visible via Akamai.

That's what I would recommend.

kind regards,
Jörg