U4-10756 - cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user