Generic list - ACS commons - NOT Updated | Community
Skip to main content
Level 2
Jan 13, 2022 11:18 PM UTC
Solved

Generic list - ACS commons - NOT Updated

Hello All,

I am using ACS commons 5.0.6 on AEM 6.4.
I am using Generic list to store keys and Title.

 

When i update the Title & try to access  the newly modified Title via API genericlist.lookupTitle()
I still am seeing only the old value.

Has someone encountered the issue ?
Please let me know if you have any solutions.

 

NOTE: This issue is happening on publish instance.

 

Thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
harishdevAccepted solution
Level 2
Feb 8, 2022 7:21 AM UTC

Hello All ,

Thanks for responding.

I finally found the solution to the problem, whose details is as below.

1. My code snippet initially looks something like this


2. The above was somehow closing the session quicker than expected, resulting in a warning

Unclosed session detected   

 3. Hence the old content was somehow being picked from the memory. The solution was simply as below,

 

Hope this helps anyone who encounters a similar issue.

 

Thanks

3 replies

harishdevAuthorAccepted solution
Level 2
Feb 8, 2022 7:21 AM UTC

Hello All ,

Thanks for responding.

I finally found the solution to the problem, whose details is as below.

1. My code snippet initially looks something like this


2. The above was somehow closing the session quicker than expected, resulting in a warning

Unclosed session detected   

 3. Hence the old content was somehow being picked from the memory. The solution was simply as below,

 

Hope this helps anyone who encounters a similar issue.

 

Thanks

Translate
Ravi_Pampana
New Participant
Jan 14, 2022 5:57 AM UTC

Hi,

 

Did you verify the changes moved to publish instance under the path /etc/acs-commons/lists ? If the changes are not reflecting only in publisher then it might be the changes are not moved to publish instance.

Translate
harishdevAuthor
Level 2
Jan 14, 2022 9:29 AM UTC

Hi Ravi ,

 

I did verify and infact tried to reopen & save directly on publish.
However the API still shows the old data.

It refreshes only after a server restart.

 

Thanks

Translate