$ionicHistory.clearCache() not clearing cache


#1

Hi,
I updated my project ionic version to 1.1.0 and try $ionicHistory.clearCache() function to clear the cached views but it is not clearing any cache. Cached page are still there and whole app get stuck can’t do any thing. Even debugging is impossible in chorme even.

Is it a bug or something else. I am using this for logout function. This is how used that function,

$ionicHistory.clearHistory();            
$ionicHistory.clearCache().then(function() {
       console.log("clear cache");
         $state.go('app.login');
 });