com.day.cq.personalization.impl.TeasersCacheServiceImpl does not invalidate cache on event

Avatar

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

140 likes

Total Posts

543 posts

Correct reply

165 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile
PuzanovsP
MVP

14-01-2021

Hi,

 

We are using OOTB TeasersCacheServiceImpl to do personalisation in AEM 6.4.4.0.

 

When we activate content we don't see variants updated on Publishers. The content get's replicated to Publishers, but the actual TeasersCacheServiceImpl that serves content to TargetedManagerImpl does not serve updated variants. We have verified and it's not due to Dispatcher.

 

We are facing issues whereby, when we activate new content, com.day.cq.personalization.impl.TeasersCacheServiceImpl does not flush it's internalteaserCacheMap within

protected Map<String, TeaserCache> teaserCacheMap = new HashMap();

public void handleChange(ResourceChange resourceChange) {

//does not get invoked.

 

The issue is consistent. Since it's in memory map, restarting server resolves the issue.

But, we can't restart our Prod server time every we modify content.

Unfortunately, API's to flush this map are not public and we can't invoke it from our code.

 

Kindly advice if anyone has faced similar issues and how you resolved it.

 

Regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

725 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

725 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

20-01-2021

Hi @PuzanovsP,

I couldn't find this class - com.day.cq.personalization.impl.TeasersCacheServiceImpl as part of Personalization bundle in 6.5.0(assuming the implementation might have been updated) nor I could gain access to Service Pack 4 of AEM 6.4 to reproduce this issue.

Given this, I suggest to check if there is any chance to update to latest Service pack as part of AEM 6.4 (On a high level, could see fixes related to Personalization in general from 6.4.8 release notes not exactly relating to this issue though)

Note : Haven't had a chance to work on Personalization in real time projects before and hence couldn't comment about this particular class/behavior 

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

20-01-2021

@kunal23 @BrianKasingli @Vijayalakshmi_S Request your help on this one.