Extend interface of add_files_to_cache to allow ignore indexing errors