add clear cache functionality