Web.PublishedCache - introduce contextual caches

This commit is contained in:
Stephan
2013-03-19 17:51:55 -01:00
parent cb966ac70b
commit ce0c72d9f8
34 changed files with 450 additions and 184 deletions

View File

@@ -270,7 +270,7 @@ namespace Umbraco.Web
s = searchProvider;
var results = s.Search(criteria);
return results.ConvertSearchResultToPublishedContent(PublishedContentCacheResolver.Current.PublishedContentCache);
return results.ConvertSearchResultToPublishedContent(UmbracoContext.Current.ContentCache);
}
#endregion
@@ -1128,7 +1128,7 @@ namespace Umbraco.Web
{
//get the root docs if parent is null
return content.Parent == null
? PublishedContentCacheResolver.Current.PublishedContentCache.GetAtRoot(UmbracoContext.Current)
? UmbracoContext.Current.ContentCache.GetAtRoot()
: content.Parent.Children;
}