add file cache and empty cache directory