How do I delete the session's cache?

AndresGT1
Giga Expert

Hello,

I'm building an app with AngularJS.

My problem is that whenever the actions are executed, if something is changed within the code it won't reflect until I manually erase the cache.

Is there an automated way to erase the actual session's cache at the end of every action?

2 REPLIES 2

nthumma
Giga Guru

bcronrath
Kilo Guru

If you want to avoid clearing the entire cache w/ cache.do, I'm wondering if you get the current GlideSession record and call the "clearClientData" method and it can be an alternative?   I suppose this is assuming you are entering the data via putClientData.   More info here:   http://wiki.servicenow.com/index.php?title=GlideSession#clearClientData.28String_paramName.29