clearCache() possible bug?

Hey guys,

I don’t meet any problems now with clearcache. The simple trick is to go to the next state only after clearcache’s promise resolved. Like so :

$ionicHistory.clearCache().then(function () {
    // Do... Whatever it is you do (if needed)
    $state.go("mystate");
});

Display a loader or something when waiting for it to complete if needed. Like that it works perfectly…