fixed clear cache on server switch bug