Implements GetByContentType in nucache

This commit is contained in:
Shannon
2019-02-14 00:17:33 +11:00
parent 412c9ffa6e
commit 3ffeb751b9
3 changed files with 7 additions and 4 deletions

View File

@@ -388,7 +388,9 @@ namespace Umbraco.Web.PublishedCache.NuCache
public override IEnumerable<IPublishedContent> GetByContentType(PublishedContentType contentType)
{
throw new NotImplementedException();
return GetAtRoot()
.SelectMany(x => x.DescendantsOrSelf())
.Where(x => x.ContentType == contentType);
}
#endregion