From d85f16cda4a3a18aab12f9b64fdfda96f046e2f8 Mon Sep 17 00:00:00 2001 From: Halgari Date: Wed, 19 Oct 2022 08:42:30 -0600 Subject: [PATCH] Implement validation cache --- CHANGELOG.md | 3 ++- Wabbajack.Services.OSIntegrated/ServiceExtensions.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6011248c..092183ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ ### Changelog -#### Version - 3.0.2.0 - 10/14/2022 +#### Version - 3.0.2.0 - 10/19/2022 * Show Modlist readmes after install * Basic support for commandline options in the WPF app * Re-add support for file associations of Wabbajack and .wabbajack files (thanks erri!) * Update to the latest game finder libraries * Add some debugging messages for when zEdit merge fails +* Add caching of archive validation to remove the random failures during compilation #### Version - 3.0.1.9 - 10/4/2022 * Lots of compiler improvements for faster compilation diff --git a/Wabbajack.Services.OSIntegrated/ServiceExtensions.cs b/Wabbajack.Services.OSIntegrated/ServiceExtensions.cs index e406fc76..46887373 100644 --- a/Wabbajack.Services.OSIntegrated/ServiceExtensions.cs +++ b/Wabbajack.Services.OSIntegrated/ServiceExtensions.cs @@ -75,7 +75,7 @@ public static class ServiceExtensions service.AddSingleton(s => options.UseLocalCache ? new VerificationCache(s.GetRequiredService>(), s.GetService()!.CreateFile().Path, TimeSpan.FromDays(1)) - : new VerificationCache(s.GetRequiredService>(),KnownFolders.WabbajackAppLocal.Combine("VerificationCache"), TimeSpan.FromDays(1))); + : new VerificationCache(s.GetRequiredService>(),KnownFolders.WabbajackAppLocal.Combine("VerificationCache.sqlite"), TimeSpan.FromDays(1))); service.AddSingleton(new ParallelOptions {MaxDegreeOfParallelism = Environment.ProcessorCount});