Closed akaralar closed 7 years ago
Since the cache is owned by you, you should be able to just call wipe on the cache directly.
Will the managed models in memory be wiped in that case as well? It might be that I'm being too much asking for these reactive features but just wanted to make sure :)
Oh yes, interesting...no, they won't be wiped. The way that we do this is we clean the view controllers. Since the view controllers hold onto the data providers, everything disappears automatically.
The consistency manager has a method clearListenersAndCancelAllTasks
which erases all the managed models (but the data providers still have a reference to the models - just they are now unmanaged).
However, this doesn't wipe the collections in the SharedCollectionManager
.
Alright, the app I'm working on is browsable when there are no users as well, but I think this is too much of an edge case to think about. Thanks for the info!
Hey,
When a user logs out, I want to wipe everything so that cached items don't leak into the next session. I went through the docs but couldn't make out if this was supported?