Fixed issue with data types not being cleared in cache refresh operations.

This commit is contained in:
Andy Butland
2021-05-11 17:28:11 +02:00
committed by Sebastiaan Janssen
parent e19a5989e9
commit 71a1817a06

View File

@@ -3,6 +3,7 @@ using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Core.Services;
using Umbraco.Web.PublishedCache;
@@ -56,6 +57,11 @@ namespace Umbraco.Web.Cache
foreach (var payload in payloads)
{
_idkMap.ClearCache(payload.Id);
if (dataTypeCache.Success)
{
dataTypeCache.Result.Clear(RepositoryCacheKeys.GetKey<IDataType, int>(payload.Id));
}
}
// TODO: not sure I like these?