There have been a few topics on this. I haven’t personally done anything like this, but other users have run into problems with this. There are issues opened for it.
Are your views within nav-views? As for the documentation :
Removes all cached views within every ionNavView. This both removes the view element from the DOM, and destroy it’s scope.
You could try the $ionicHistory.clearHistory() which
Clears out the app’s entire history, except for the current view.
opened 04:19PM - 14 Jan 15 UTC
closed 05:23PM - 13 Apr 15 UTC
**Type**: <span ionic-type>feat</span>
**Platform**: <span ionic-platform>all</… span>
<span ionic-description>I have an app that needs a login to see personal informations.
Since ionic beta 14 and the introduction of Cached Views I have big trouble when a user logoff and login with a different user.
The new user after the login still see the cached views of the previous user.
At the moment it seems that the only solution to avoid this is to disable everywhere the cached views ( `$ionicConfigProvider.views.maxCache(0);` ).
It would be very useful to have a ionic.flushCachedViews() method to clear all the cached views.
I would call this when a user logoff.</span>
<span is-issue-template></span>