Delete useless file add caches for file