Update the cache on login.