Updates petapoco to have a sliding expiration for the delegates cache, updates the keys it uses to be short hashes, fixes some null checks in content/media services, adds new test for checking that peta poco caches aren't growing with the same queries.

This commit is contained in:
Shannon
2014-09-26 11:19:54 +10:00
parent 4084ff8a24
commit 9d5f3089c8
4 changed files with 389 additions and 187 deletions

View File

@@ -523,6 +523,10 @@ namespace Umbraco.Core.Services
public IEnumerable<IContent> GetDescendants(int id)
{
var content = GetById(id);
if (content == null)
{
return Enumerable.Empty<IContent>();
}
return GetDescendants(content);
}