Implement validation cache

This commit is contained in:
Halgari 2022-10-19 08:42:30 -06:00
parent 9d74b121e4
commit d85f16cda4
2 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
### Changelog ### Changelog
#### Version - 3.0.2.0 - 10/14/2022 #### Version - 3.0.2.0 - 10/19/2022
* Show Modlist readmes after install * Show Modlist readmes after install
* Basic support for commandline options in the WPF app * Basic support for commandline options in the WPF app
* Re-add support for file associations of Wabbajack and .wabbajack files (thanks erri!) * Re-add support for file associations of Wabbajack and .wabbajack files (thanks erri!)
* Update to the latest game finder libraries * Update to the latest game finder libraries
* Add some debugging messages for when zEdit merge fails * 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 #### Version - 3.0.1.9 - 10/4/2022
* Lots of compiler improvements for faster compilation * Lots of compiler improvements for faster compilation

View File

@ -75,7 +75,7 @@ public static class ServiceExtensions
service.AddSingleton<IVerificationCache>(s => options.UseLocalCache service.AddSingleton<IVerificationCache>(s => options.UseLocalCache
? new VerificationCache(s.GetRequiredService<ILogger<VerificationCache>>(), s.GetService<TemporaryFileManager>()!.CreateFile().Path, TimeSpan.FromDays(1)) ? new VerificationCache(s.GetRequiredService<ILogger<VerificationCache>>(), s.GetService<TemporaryFileManager>()!.CreateFile().Path, TimeSpan.FromDays(1))
: new VerificationCache(s.GetRequiredService<ILogger<VerificationCache>>(),KnownFolders.WabbajackAppLocal.Combine("VerificationCache"), TimeSpan.FromDays(1))); : new VerificationCache(s.GetRequiredService<ILogger<VerificationCache>>(),KnownFolders.WabbajackAppLocal.Combine("VerificationCache.sqlite"), TimeSpan.FromDays(1)));
service.AddSingleton(new ParallelOptions {MaxDegreeOfParallelism = Environment.ProcessorCount}); service.AddSingleton(new ParallelOptions {MaxDegreeOfParallelism = Environment.ProcessorCount});