Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Flush Cache in Akamai

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Employee Advisor

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

Avatar

Level 3

Hi Shubham,

In the above link contains only implementation class. can you provide the all class file related to this article. i am facing some issues in config class also.