Clear cache on logout


#1

How to clear cache from Ionic App on logout? My application have users and when i am logged on as X than logout and login as Y the view still hold some elements from user X account. I know that I can disable the cache but don’t want to do it for performance reasons. I tried the ionicHistory.clearCache() but it doesn’t work for me.