Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How can we trigger transport handler in publisher when any pages are replicated.

Avatar

Level 1

 

We have created our custom akamai flush agent, which should het triggered when we publish any page

http://localhost:4503/etc/replication/agents.publish/akamai-flush-agent.html

Test connection of akamai flush agent is successful but it is not getting triggered when we publish any page from author to publish instance.

Use Case - we need to get the page path in AkamaiTransportHandler.java in publisher instance which is getting replicated from author. 

We have followed the documentation given in this https://aem.design/blog/2021/04/25/creating-akamai-flush-agent.

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SangramT ,

Please make sure you have dispatcher flush agent setup also along with Akamai flush set up. Akamai will pull content from dispatcher if its on top of dispatcher so in case flush set up is not done on dispatcher you will still see stale content.
Also when you do test connection check the post url where hit is going on Akamai and look for the correct access token provided by DevOps team.


THanks
Tarun

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @SangramT ,

Please make sure you have dispatcher flush agent setup also along with Akamai flush set up. Akamai will pull content from dispatcher if its on top of dispatcher so in case flush set up is not done on dispatcher you will still see stale content.
Also when you do test connection check the post url where hit is going on Akamai and look for the correct access token provided by DevOps team.


THanks
Tarun

Avatar

Community Advisor

@SangramT 

Additionally, You can also try using AEM preprocessor to clear cache while replication.

Please find the below link for reference

https://aem4beginner.blogspot.com/aem-preprocessor