We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a3ef8094 authored by Evan Prodromou's avatar Evan Prodromou

use multiGet() for a profile's groups

parent 874f1db3
......@@ -273,16 +273,7 @@ class Profile extends Memcached_DataObject
self::cacheSet($keypart, implode(',', $ids));
$groups = array();
foreach ($ids as $id) {
$group = User_group::staticGet('id', $id);
if (!empty($group)) {
$groups[] = $group;
return new ArrayWrapper($groups);
return User_group::multiGet('id', $ids);
function isTagged($peopletag)
......@@ -33,6 +33,11 @@ class User_group extends Memcached_DataObject
function staticGet($k,$v=NULL) {
return Memcached_DataObject::staticGet('User_group',$k,$v);
function multiGet($keyCol, $keyVals, $skipNulls=true)
return parent::multiGet('User_group', $keyCol, $keyVals, $skipNulls);
/* the code above is auto generated do not remove the tag below */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment