Dedicated dispatcher flush agent for a path

Avatar

Avatar
Validate 1
Level 2
dennyj13354090
Level 2

Likes

8 likes

Total Posts

27 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
dennyj13354090
Level 2

Likes

8 likes

Total Posts

27 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
dennyj13354090
Level 2

02-09-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

17 likes

Total Posts

43 posts

Correct reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

17 likes

Total Posts

43 posts

Correct reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
SonDang
Employee

03-09-2019

When you set up your Dispatcher flush agent, use the property "Agent User Id" and specify a user that will be reading the content and flushing it. You will need to create this new user and configure the user to only have read permission on the path(s) that you want this user to flush (e.g. /content/my-site/templates).

Answers (3)

Answers (3)

Avatar

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
anujg3325839
Level 3

04-09-2019

Hi Denny,

flush send a GET HTTP request with content path in its header. to make it path specific .. as explaind above post.

create a user whihc has access for the path (/content/my-site/templates) not for anything else, configure this user under agent ID. This will let the all other path fail while reading via dispatcher flush agent user. and only the relevent path will be invaladated.

Avatar

Avatar
Validate 1
Level 2
dennyj13354090
Level 2

Likes

8 likes

Total Posts

27 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
dennyj13354090
Level 2

Likes

8 likes

Total Posts

27 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
dennyj13354090
Level 2

04-09-2019

Thank you so much.

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

02-09-2019

You can use the  /statfileslevel  property in dispatcher configuration to invalidate cached files according to their path.

Configuring Dispatcher