K2 Identity cache refresh


Badge +3

Hi All,


 


I am facing some issue when i add some members or delete some members, the cache is not getting refreshed. So the result wheni exceute getroleusers method gives me old one. Is their any way to refresh the identity when method is executed without using the identity force refresh tool or the script. Can anyone have idea on this.


 


The K2 version is 4.6.11


 


Thanks


2 replies

Badge +7

I ended up creating a stored procedure in the database to refresh all roles.   Then using SQL smart object,  placed the call to the stored procedure on an 'Admin'  smart form.    

 

Set it up once, and now anyone can refresh the roles in a single click of the button.   Using the User Role Manager service, you can refresh the results on the very same page.   Makes it nice and neat and user friendly.

Badge +15

Hi,

 

Have you tried setting the role to dynamic?

 

Reference:

http://help.k2.com/onlinehelp/k2blackpearl/userguide/current/webframe.html#reference_-_k2_roles.html

Reply