caching: also clear in-memory settings on disconnect