diff --git a/src/import_pipeline.cc b/src/import_pipeline.cc index f346d9a0..9a2b41e4 100644 --- a/src/import_pipeline.cc +++ b/src/import_pipeline.cc @@ -277,8 +277,7 @@ std::vector PreloadFileContents( std::vector file_contents = {contents}; cache_manager->IterateLoadedCaches([&](IndexFile* index) { - optional index_content = - cache_manager->LoadCachedFileContents(index->path); + optional index_content = ReadContent(index->path); if (!index_content) { LOG_S(ERROR) << "Failed to load index content for " << index->path; return; @@ -290,8 +289,7 @@ std::vector PreloadFileContents( }); if (!loaded_primary) { - optional content = - cache_manager->LoadCachedFileContents(path_to_index); + optional content = ReadContent(path_to_index); if (!content) { // Modification timestamp should have detected this already. LOG_S(ERROR) << "Skipping index (file cannot be found): "