Ensures entire nucache linked list is not rebuild on schema changes when disabled

This commit is contained in:
Shannon
2020-04-20 23:22:03 +10:00
parent 8927472457
commit e62fef8faf
5 changed files with 23 additions and 7 deletions

View File

@@ -859,9 +859,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
Notify<IContentType>(_contentStore, payloads, RefreshContentTypesLocked);
Notify<IMediaType>(_mediaStore, payloads, RefreshMediaTypesLocked);
OnNotified(new NotifiedEventArgs<ContentTypeCacheRefresher.JsonPayload>(payloads));
if (_publishedModelFactory.IsLiveFactory())
if (_publishedModelFactory.IsLiveFactoryEnabled())
{
//In the case of Pure Live - we actually need to refresh all of the content and the media
//see https://github.com/umbraco/Umbraco-CMS/issues/5671

View File

@@ -49,8 +49,5 @@ namespace Umbraco.Web.PublishedCache
public virtual void Dispose()
{ }
protected void OnNotified(NotifiedEventArgs<ContentTypeCacheRefresher.JsonPayload> args) => Notified?.Invoke(this, args);
public event EventHandler<NotifiedEventArgs<ContentTypeCacheRefresher.JsonPayload>> Notified;
}
}