How do I delete the session's cache?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 03:20 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 03:36 PM
try cache.do https://instancename.service-now.com/cache.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 03:47 PM
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