Clear internal caches when switching active configurations

Close #851.