Skip to content

Commit

Permalink
Bug fix when getting the tree by balue
Browse files Browse the repository at this point in the history
  • Loading branch information
davorzlotrg committed Oct 10, 2019
1 parent 4f01d4a commit 37bd14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Merchello.Web/Search/ProductCollectionTreeQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ProductCollectionTreeQuery(IMerchelloContext merchelloContext)
/// <inheritdoc/>
public TreeNode<IProductCollection> GetTreeByValue(IProductCollection value)
{
var cacheKey = GetCacheKey("GetTreeByValue");
var cacheKey = GetCacheKey("GetTreeByValue", value.Key);
var tree = (TreeNode<IProductCollection>)Cache.GetCacheItem(cacheKey);

if (tree != null) return tree;
Expand Down Expand Up @@ -76,4 +76,4 @@ public IEnumerable<TreeNode<IProductCollection>> GetRootTrees()
Cache.GetCacheItem(cacheKey, () => factory.BuildTrees(GetAll()));
}
}
}
}

0 comments on commit 37bd14c

Please sign in to comment.