Skip to content

feat: Add a method to empty/flush Cached Views #2939

@gio82

Description

@gio82

Type: feat

Platform: all

I have an app that needs a login to see personal informations.

Since ionic beta 14 and the introduction of Cached Views I have big trouble when a user logoff and login with a different user.

The new user after the login still see the cached views of the previous user.
At the moment it seems that the only solution to avoid this is to disable everywhere the cached views ( $ionicConfigProvider.views.maxCache(0); ).

It would be very useful to have a ionic.flushCachedViews() method to clear all the cached views.
I would call this when a user logoff.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions