Hi all.
I want to clear cache on logout.
Below is the method to be called when user clicks the logout button:
async doLogout(user) {
await this.fireAuth.auth.signOut().then(()=>{
this.toast.create({
message: 'Logout',
duration: 3000
}).present();
this.navCtrl.setRoot('LoginPage');
});
}
Any help would be appreciated.