Cai Qi had worked under Xi for more than a decade before being named mayor of Beijing last year. Photo: Reuters