validation of adding  bug and clear cache when closese