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.
Solved! Go to Solution.
Views
Replies
Total Likes
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].
[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
Views
Replies
Total Likes
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].
[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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies