Used documented settings for the media seed cache. (#18723)

This commit is contained in:
Andy Butland
2025-03-19 09:47:12 +01:00
committed by GitHub
parent b24c29c647
commit 18069633b2

View File

@@ -291,8 +291,8 @@ internal class MediaCacheService : IMediaCacheService
private HybridCacheEntryOptions GetSeedEntryOptions() => new()
{
Expiration = _cacheSettings.SeedCacheDuration,
LocalCacheExpiration = _cacheSettings.SeedCacheDuration,
Expiration = _cacheSettings.Entry.Media.SeedCacheDuration,
LocalCacheExpiration = _cacheSettings.Entry.Media.SeedCacheDuration,
};
private string GetCacheKey(Guid key, bool preview) => preview ? $"{key}+draft" : $"{key}";