post cherry pick fix

This commit is contained in:
Bjarke Berg
2019-11-04 11:54:19 +01:00
parent 5728823625
commit e77eb74655

View File

@@ -46,7 +46,7 @@ namespace Umbraco.Web.Cache
ClearAllIsolatedCacheByEntityType<ILanguage>();
foreach (var payload in payloads)
{
{
switch (payload.ChangeType)
{
case LanguageChangeType.Update:
@@ -72,8 +72,8 @@ namespace Umbraco.Web.Cache
RefreshDomains();
ContentCacheRefresher.RefreshContentTypes(AppCaches); // we need to evict all IContent items
//now refresh all nucache
var clearContentPayload = new[] { new ContentCacheRefresher.JsonPayload(0, null, TreeChangeTypes.RefreshAll) };
ContentCacheRefresher.NotifyPublishedSnapshotService(_publishedSnapshotService, AppCaches, clearContentPayload);
var clearContentPayload = new[] { new ContentCacheRefresher.JsonPayload(0, TreeChangeTypes.RefreshAll) };
ContentCacheRefresher.NotifyPublishedSnapshotService(_publishedSnapshotService, AppCaches, clearContentPayload);
}
// then trigger event