implemented clearing damaged cache
introduced a clearcahe command for debugging purpose