title: Is it possible to clear the view cache in Ionic?
body: <p>I'm currently working on a Angular/Ionic/Cordova project and we've recently upgraded to the latest Ionic beta. From the version the project was using before, this introduced the view cache. It has also however introduced an issue in doing so.</p>
  
  <p>The application is customer-facing and is very data-centric. A user must authenticate to view data associated with their account, currently however; when a user logs out, and logs into another account, because the view(s) are still cached they are presented with the views of the last account.</p>
  
  <p>The app should still cache the views when the user is logged in, as it helps make the app feel much quicker, but the cache should be purged when a user logs out.</p>
  
  <p>Setting <code>cache-view="false"</code> is not an option, as it would completely disable the cache.</p>
  
  <p>I've also tried setting <code>$ionicConfig.views.maxCache(0);</code> and then back to the default of 10 in the hopes that it would purge the cache in doing so, but it had no effect.</p>
  
  <p>The last thing I can think of to do is fire an event when a user logs in that refreshes all data that's currently loaded into the views - however, this would take a bit more effort than I feel it should. </p>
  
  <p>Is there a way to simply clear the view cache?</p>