Fixed issue with data types not being cleared in cache refresh operations.
(cherry picked from commit 71a1817a06)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
3f596e27cc
commit
12328ba2f7
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user