# Clear cache on logout

**URL:** <https://forum.ionicframework.com/t/clear-cache-on-logout/32129>\
**Category:** uncategorized\
**Created:** [September 10, 2015, 2:54pm UTC](https://forum.ionicframework.com/t/clear-cache-on-logout/32129 "2015-09-10T14:54:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toncier](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Toncier](https://forum.ionicframework.com/u/Toncier)\
**Post date:** [September 10, 2015, 2:54pm UTC](https://forum.ionicframework.com/t/clear-cache-on-logout/32129/1 "2015-09-10T14:54:52Z")

</div>

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.
