From: hickert Date: Thu, 30 Oct 2008 11:06:48 +0000 (+0000) Subject: Updated caching for get_category_acls. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c039e7baf4add2c14bed077ef588a0bc2a19df88;p=gosa.git Updated caching for get_category_acls. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12830 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 4a840d422..b2143df0b 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -189,6 +189,12 @@ class userinfo return("rwcdm"); } + /* Ensure that we only cache relevant ACL settings + */ + while(!isset($this->ACL[$dn]) && preg_match("/,/",$dn)){ + $dn = preg_replace("/^[^,]*+,/","",$dn); + } + $ACL_CACHE = &session::get("ACL_CACHE"); $id = $dn."+".$category."+".$any_acl; if(isset($ACL_CACHE['CATEGORY_ACL'][$id])){