Fixed user verification on whether to clear cache