Show "Logout…" if you're logged in. Also log in when you press the cache button if it makes sense.