fix typo
improve cache file deletion management