clear cache method