removes the test suspendable model factory code

This commit is contained in:
Shannon
2019-09-16 16:59:57 +10:00
parent bc40216eca
commit 47d3af9bb3
6 changed files with 6 additions and 103 deletions

View File

@@ -790,8 +790,6 @@ namespace Umbraco.Web.PublishedCache.NuCache
Notify<IContentType>(_contentStore, payloads, RefreshContentTypesLocked);
Notify<IMediaType>(_mediaStore, payloads, RefreshMediaTypesLocked);
//TODO: I don't think this is necessary with the changes to nucache now that calls to `CreateModel` are lazy?
// but I may be dreaming here, if i remove this call and save a content type, then the cache doesn't render a lot of the content. hrm.
if (_publishedModelFactory.IsLiveFactory())
{
//In the case of Pure Live - we actually need to refresh all of the content and the media