Skip to content

Commit 857b721

Browse files
committed
Renamed CacheLevel value
Renamed to reflect that it is set at the property level
1 parent ccd35b6 commit 857b721

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Configuration/ShopifySettings.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public ShopifySettings(NameValueCollection appSettings)
2727
switch (appSettings[Constants.Configuration.UmbracoCmsIntegrationsCommerceShopifyPropertyCacheLevel])
2828
{
2929
case "Unknown":
30-
CacheLevel = PropertyCacheLevel.Unknown;
30+
PropertyCacheLevel = PropertyCacheLevel.Unknown;
3131
break;
3232
case "Element":
33-
CacheLevel = PropertyCacheLevel.Element;
33+
PropertyCacheLevel = PropertyCacheLevel.Element;
3434
break;
3535
case "Elements":
36-
CacheLevel = PropertyCacheLevel.Elements;
36+
PropertyCacheLevel = PropertyCacheLevel.Elements;
3737
break;
3838
case "None":
39-
CacheLevel = PropertyCacheLevel.None;
39+
PropertyCacheLevel = PropertyCacheLevel.None;
4040
break;
4141
default:
42-
CacheLevel = PropertyCacheLevel.Snapshot;
42+
PropertyCacheLevel = PropertyCacheLevel.Snapshot;
4343
break;
4444
}
4545
}
@@ -52,6 +52,6 @@ public ShopifySettings(NameValueCollection appSettings)
5252

5353
public bool UseUmbracoAuthorization { get; set; } = true;
5454

55-
public PropertyCacheLevel CacheLevel { get; set; } = PropertyCacheLevel.Snapshot;
55+
public PropertyCacheLevel PropertyCacheLevel { get; set; } = PropertyCacheLevel.Snapshot;
5656
}
5757
}

src/Umbraco.Cms.Integrations.Commerce.Shopify/Editors/ShopifyProductPickerValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override bool IsConverter(IPublishedPropertyType propertyType) =>
4343
public override Type GetPropertyValueType(IPublishedPropertyType propertyType) => typeof(List<ProductViewModel>);
4444

4545
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) =>
46-
_settings.CacheLevel;
46+
_settings.PropertyCacheLevel;
4747

4848
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source,
4949
bool preview)

0 commit comments

Comments
 (0)