how to clear user criteria cache without logging out

manish64
Giga Guru

how to clear user criteria cache without logging out .I have tried to clear user criteria by gs.cacheflush('criteria_cache')but no luck.

Issue:we have user criteria built on location ,if user change location then he need to logout and login again but i am trying to achive it without logout .Anyone tried it ??

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Manish,

 

That is an expected behavior as it requires new session to be established.

In case you will you can clear cache of instance by using cache.do in the application navigator & then pressing Enter.

Michael Culhane
Tera Contributor

In Quebec you can disable the caching of scripted user criteria with a property called glide.cache.disabled.scripted_user_criteria_cache = true.  https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0962006