invalidate cache based on updated node in JCR

Avatar

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
dilips50359074
Level 2

25-09-2019

Hello AEM  Guru's

I have a requirement in the project...

Environment (dipsatcher only)

a) Red hat linux

b) Apache http server

c) dispatcher module installed

Enviornment(publish only)

a) Red hat linux

b) AEM 6.5

When ever the data is created in JCR using scheduler lets say content/xyz/data/abc node data is changed then

AEM need to invalidate the cache in dispatcher so that latest data is visible.

What options do we have......

appreciate any suggestions/solutions on this.

Regards

Dilip

Replies

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

25-09-2019

You can create an event listener on node Create event which is triggering dispatcher flush agent.

Although, I don't think that you need it, as creating a new node it does not mean that the node is already cached by a dispatcher.

For that, you need to request a URL to the node via Apache/Dispatcher.

Avatar

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
dilips50359074
Level 2

25-09-2019

Thanks , missed to add additional information,

The dynamic nodes are read through a component on all the pages... so when ever the nodes change, the pages cached in dispatcher should be invalidated... so that the new content is shown.

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,136 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,136 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

25-09-2019

Have you checked already the documentation how to do proper invalidation [1]? If you have created the replication agent, you can also use the standard replication API to trigger the invalidation manually.

[1] Invalidating Cached Pages From AEM

Avatar

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
dilips50359074
Level 2

Likes

2 likes

Total Posts

30 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
dilips50359074
Level 2

03-10-2019

Hi AEM gurus,

Did any of you get a chance to implement the ACS AEM commons - Http Cache - JCR node change invalidator and the url for implementation is Http Cache - Invalidation

When I implement and JCR node gets changed or deleted , nothing is getting triggered to invalidate the cache in dispatcher.

If some one has implemented it in their project, can you help me step by step.

Regards

Dilip