How long does a cached view stay?

Can we configure how long does the cached views stay? For example, on a news feeds page, can we configure the view to be expired every 2 hours etc.? So that the news feeds view will not stay there the same for a whole day due to cached.

Looking at the source code of history.js (line 631 and further) you can pass in options for the cache expire time for the next view:

$ionicHistory.nextViewOptions({
    expire: 60*60*2 // 2 hours
});

hi @devqon1, i tried it, but it’s not working, i tried to set it to 2 mins, but the cached view still stays there forever.