I need to build on a solution to flush the dispatcher cache on activation of content fragments/ experience fragments with activating the content page. The content pages are generated dynamically, there are no physical pages available on the publisher.
There are two approaches are recommended -
The preferred approach is Sling Content Distribution (SCD) from the Author.
The other approach uses the Replication API to invoke the publish Dispatcher flush replication agent.
The solution should need to support both AEM 6.5 and AEM as Cloud.