how to update user information after change of value ?

Document ID : KB000044729
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

When changing user attributes in Identity portal, which are set in the user information and displayed in the portal for the user, the change is not always visible immediately. Even refreshing the Client browser (IE / Chrome / Firefox) does not help. This is due to caching of the data in the portal.

Question: 

How to change the caching parameters of Identity Portal.

Environment:  

Identity Portal 1.6.2 on JBoss 6.4 EAp

identity Suite 12.6.8 with Identity Portal on JBoss 6.4 EAP

Answer: 

Identity Portal holds the cache configuration in the file  “sigma-portal-infinispan-config.xml”. 

 

Identity Portal holds the cache configuration in the file "sigma-portal-infinispan-config.xml"

To edit it you have to:

1) Open the sigma.war file with Winrar.

2) open the \WEB-INF\lib and extract the file "sigma-bl-0.0.2-SNAPSHOT.jar"

3) Using winrar, open the file "sigma-portal-infinispan-config.xml" in the root directory

search for:

<local-cache name="user">

<eviction max-entries="10000" strategy="LIRS" />

<!-- Expire user cache after 5 minutes. Idea here is to cache inside a request session only -->

<expiration lifespan="300000"/>

< /local-cache>

Change the value of the "expiration lifespan". The units are milliseconds, so changing it to 2000 will be enough.

Please DO NOT put a value below 2000 as it will cause many un-needed queries which will slow down your server.

After saving the changes, copy the file back into the .jar and the .jar file into the sigma.war.

Redeploy the modified sigma.war file.


After the change, when a user attribute has changed a refresh to the browser will refresh the data.

Additional Information:

 

N/A