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

@@ -9,15 +9,17 @@ namespace Umbraco.Web.PublishedCache
{
internal interface IPublishedContentCache : IPublishedCache
{
// do we want that one?
// FIXME do we want that one?
IPublishedContent GetByRoute(UmbracoContext umbracoContext, string route, bool? hideTopLevelNode = null);
// do we want that one?
// FIXME do we want that one?
IPublishedContent GetByUrlAlias(UmbracoContext umbracoContext, int rootNodeId, string alias);
// vs. having a GetDocumentByXPath ?!
// do we want to get-by-xpath?
/// <summary>
/// Gets a value indicating whether the cache contains published content.
/// </summary>
/// <param name="umbracoContext">The context.</param>
/// <returns>A value indicating whether the cache contains published content.</returns>
bool HasContent(UmbracoContext umbracoContext);
}
}