com.day.cq.personalization.impl.TeasersCacheServiceImpl does not invalidate cache on event | Community
Skip to main content
Peter_Puzanovs
Community Advisor
Community Advisor
January 14, 2021
Solved

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

  • January 14, 2021
  • 2 replies
  • 1860 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @peter_puzanovs,

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 

2 replies

kautuk_sahni
Community Manager
Community Manager
January 20, 2021

@kunal_gaba_ @briankasingli @vijayalakshmi_s Request your help on this one.

Kautuk Sahni
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
January 20, 2021

Hi @peter_puzanovs,

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 

Peter_Puzanovs
Community Advisor
Community Advisor
January 21, 2021
Hi Vijay, Thanks for your reply, we are pushing latest service pack of 6.4 right now to see if it will fix this problem. Regards, Peter
Level 6
November 13, 2024

I see similar issue in AEM 6.5 (author mode) if we navigate to preview mode from Edit -> Targeting -> Preview.  Can you let me know what was fix implemented to fix the issue?