add clear cache method