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(()=>{ 
        message: 'Logout',
        duration: 3000

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?