Files
Umbraco-CMS/src/Umbraco.Core/Configuration/Models/RuntimeMinificationSettings.cs
Bjarke Berg 4d4fa4d041 https://github.com/umbraco/Umbraco-CMS/issues/11188
Fixes Missing JSON Schema Property for RuntimeMinification:Version
2021-10-04 20:01:23 +02:00

31 lines
1.0 KiB
C#

using System.ComponentModel;
namespace Umbraco.Cms.Core.Configuration.Models
{
[UmbracoOptions(Constants.Configuration.ConfigRuntimeMinification)]
public class RuntimeMinificationSettings
{
internal const bool StaticUseInMemoryCache = false;
internal const string StaticCacheBuster = "Version";
internal const string StaticVersion = null;
/// <summary>
/// Use in memory cache
/// </summary>
[DefaultValue(StaticUseInMemoryCache)]
public bool UseInMemoryCache { get; set; } = StaticUseInMemoryCache;
/// <summary>
/// The cache buster type to use
/// </summary>
[DefaultValue(StaticCacheBuster)]
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = Enum<RuntimeMinificationCacheBuster>.Parse(StaticCacheBuster);
/// <summary>
/// The unique version string used if CacheBuster is 'Version'.
/// </summary>
[DefaultValue(StaticVersion)]
public string Version { get; set; } = StaticVersion;
}
}