Hello All,
In my AEM web site there is a special folder called templates (/content/my-site/templates) which contains pages which are actually email templates. We have a different system called CNS (customer notification system) which use this pages as a template and compos the EMails with customer data. For better performance the template html is cached by CNS server. So when ever content manager change some templates I have to notify the CNS system to invalidate the cache. CNS system has a REST API for invalidating the cache. So I configured a Dispatcher Flush agent to call the CNS Rest API.
So far the things are working as fine except some unwanted invalidate calls. The problem is the agent get triggered for every paths. Is there any way to make this agent trigger only for the changes under a given path (/content/my-site/templates).
Or please suggest a better approach.
Any help is highly appreciated.
Regards
Denny