Invalidate _switchPathCache when switchPath changes.