Cache-view conditioned by data base parameter

Hi, I am creating an sport app.

The positions table change when there are live matches, so I want to every time the user enter into the view, this loads but is with cache on. So I try with cache-view directive and a scope variable that is true or false so when there are live matches the cache-view=“false” otherwise is true.

But even if the cache-view=“false” the view is still in cache.

This is the code I have

First View Controller

window.localStorage[‘refresh’] = data.refresh;

Positions Table View Controller

$scope.refresh = ! window.localStorage[‘refresh’];

Positions Table View

If refresh is true or false doesn’t matter because the view is always in cache.

What can I do? Thanks.

Hello @alejandro57
did you resolve this issue?