How to clear cache on logout

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.

What sort of cache are we talking about?

In my case, variables.

I hope all variables are initialized when user log out, but now it doesn’t.

Have you found a solution?