Skip to content

Commit 6800045

Browse files
authored
Merge pull request LykosAI#1040 from ionite34/backport/dev/commit-4b32589f
2 parents 13d559d + e97168d commit 6800045

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
1212
- Fixed Inference ControlNet Preprocessors using incorrect resolution and increased maximum of smallest dimension to 16384
1313
- Fixed Triton/Sage install option showing for incompatible GPUs
1414
- Fixed errors from invalid pip specifiers in requirements files
15+
- Fixed package images sometimes showing as blank due to concurrent image caching. Requests to same image resources are now de-duplicated
1516

1617
## v2.14.0-pre.1
1718
### Added

StabilityMatrix.Avalonia/Controls/VendorLabs/AsyncImage/BetterAsyncImageCacheProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.IO;
33
using System.Reflection;
44
using System.Threading;
5+
using Fusillade;
56
using StabilityMatrix.Avalonia.Controls.VendorLabs.Cache;
67

78
namespace StabilityMatrix.Avalonia.Controls.VendorLabs;
@@ -20,7 +21,8 @@ public static class BetterAsyncImageCacheProvider
2021
&& !string.IsNullOrEmpty(assemblyName)
2122
? Path.Combine(Path.GetTempPath(), assemblyName, "Cache")
2223
: Path.Combine(Path.GetTempPath(), "Cache"),
23-
CacheDuration = TimeSpan.FromDays(1)
24+
CacheDuration = TimeSpan.FromDays(1),
25+
HttpMessageHandler = NetCache.UserInitiated
2426
}
2527
),
2628
LazyThreadSafetyMode.ExecutionAndPublication

0 commit comments

Comments
 (0)