U4-10756 - cleanup

This commit is contained in:
Stephan
2018-03-15 09:51:12 +01:00
parent fb5e6c22ce
commit af0a03a3e0
2 changed files with 1 additions and 3 deletions

View File

@@ -351,8 +351,6 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
// populate the idkmap by indexing the content cache
// assuming that the content cache cannot be corrupted
// PROBLEM: still, the idk map on-demand will do a DB lookup, is it bad?
// OR should we register PROVIDERS for the map FFS what a mess
private void EnsureIdkMap(UmbracoContext umbracoContext)
{
lock (_idkMapLocker)

View File

@@ -74,7 +74,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
public virtual IPublishedContent GetById(UmbracoContext umbracoContext, bool preview, Guid nodeKey)
{
// fixme optimize with Lucene and stuff?
// TODO optimize with Examine?
var mapAttempt = ApplicationContext.Current.Services.IdkMap.GetIdForKey(nodeKey, UmbracoObjectTypes.Media);
return mapAttempt ? GetById(umbracoContext, preview, mapAttempt.Result) : null;
}