ensure locks the data types

This commit is contained in:
Shannon
2020-01-13 22:28:25 +11:00
parent b02360518d
commit 3e71de4698

View File

@@ -462,6 +462,8 @@ namespace Umbraco.Web.PublishedCache.NuCache
/// </exception>
public void UpdateDataTypesLocked(IEnumerable<int> dataTypeIds, Func<int, IPublishedContentType> getContentType)
{
EnsureLocked();
var contentTypes = _contentTypesById
.Where(kvp =>
kvp.Value.Value != null &&