clear cache after switching