{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3478","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3478/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3478/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3478/events","html_url":"https://github.com/driftyco/ionic/issues/3478","id":66819913,"number":3478,"title":"$ionicView.clearCache() breaks tabs with multiple views","user":{"login":"bodinaren","id":5681208,"avatar_url":"https://avatars.githubusercontent.com/u/5681208?v=3","gravatar_id":"","url":"https://api.github.com/users/bodinaren","html_url":"https://github.com/bodinaren","followers_url":"https://api.github.com/users/bodinaren/followers","following_url":"https://api.github.com/users/bodinaren/following{/other_user}","gists_url":"https://api.github.com/users/bodinaren/gists{/gist_id}","starred_url":"https://api.github.com/users/bodinaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodinaren/subscriptions","organizations_url":"https://api.github.com/users/bodinaren/orgs","repos_url":"https://api.github.com/users/bodinaren/repos","events_url":"https://api.github.com/users/bodinaren/events{/privacy}","received_events_url":"https://api.github.com/users/bodinaren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T08:17:50Z","updated_at":"2015-04-07T08:17:50Z","closed_at":null,"body":"I found a problem with $ionicView.clearCache(). I have a tab-based app in which I want to clear the view cache at certain times. Check this [codepen](http://codepen.io/anon/pen/vEMydG?editors=101): \r\n\r\nNote that in tab 1 and tab 2 I have two views like so:\r\n\r\n```html\r\n<ion-tab>\r\n  <div ui-view=\"tab1-top\" /> //(shown in gray background)\r\n  <ion-nav-view name=\"tab1\">\r\n</ion-tab>\r\n```\r\n\r\nNow when you clear the cache by clicking any of the \"Clear cache\"-buttons, Tab 1 and Tab 2 (except the one you currently have active, if either) will stop working. However, Tab 3 which only has an ion-nav-view (no ui-view) works just fine.\r\n\r\nI've narrowed down the problem to [this commit](https://github.com/driftyco/ionic/commit/3628ebac16e5d2924c158c18d748403f4ff12b8b) (js/angular/directive/tab.js:181). Removing this line and everything seems to work just fine, but I suspect it re-introduce the [initial problem](https://github.com/driftyco/ionic/issues/2664) the commit intended to fix?"}}