Merge pull request #1651 from umbraco/temp-U4-9282

U4-9282 Rollback not working
This commit is contained in:
Claus
2016-12-20 11:24:05 +01:00
committed by GitHub

View File

@@ -851,7 +851,8 @@ order by umbracoNode.level, umbracoNode.parentID, umbracoNode.sortOrder";
if (withCache)
{
var cached = RuntimeCache.GetCacheItem<IContent>(GetCacheIdKey<IContent>(dto.NodeId));
if (cached != null && cached.Published)
//only use this cached version if the dto returned is also the publish version, they must match
if (cached != null && cached.Published && dto.Published)
{
content[i] = cached;
continue;