Ticket #1539 (closed defect: fixed)
Performance: check permissions against the nearest parent album
|Reported by:||krissatsverok||Owned by:||krissatsverok|
access:user_can() and access::group_can() pull access_cache entries for a given item, but for non-albums that's just a duplicate of the access_cache entry for the parent album. When checking many items, it's faster to check the access_cache for the nearest parent album (self inclusive) instead.