title: Clear cache in ionic application?
body: <p>i have read so many blogs it says there is a bug in </p>
  
  <pre><code>$scope.logout = function() {
  
      $ionicHistory.clearCache();
      $ionicHistory.clearHistory();
      $state.go('home');
  
  };
  </code></pre>
  
  <p>is there any solution for clearing cache using ionic code or using some angular code??</p>