Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
| Show First 20 Lines • Show All 538 Lines • ▼ Show 20 Lines | private function fillUserCaches(array $users) { | ||||
| foreach ($need as $cache_key => $need_users) { | foreach ($need as $cache_key => $need_users) { | ||||
| $type = PhabricatorUserCacheType::getCacheTypeForKey($cache_key); | $type = PhabricatorUserCacheType::getCacheTypeForKey($cache_key); | ||||
| if (!$type) { | if (!$type) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $data = $type->newValueForUsers($cache_key, $need_users); | $data = $type->newValueForUsers($cache_key, $need_users); | ||||
| foreach ($data as $user_phid => $value) { | foreach ($data as $user_phid => $raw_value) { | ||||
| $raw_value = $type->getValueForStorage($value); | |||||
| $data[$user_phid] = $raw_value; | $data[$user_phid] = $raw_value; | ||||
| $writes[] = array( | $writes[] = array( | ||||
| 'userPHID' => $user_phid, | 'userPHID' => $user_phid, | ||||
| 'key' => $cache_key, | 'key' => $cache_key, | ||||
| 'type' => $type, | 'type' => $type, | ||||
| 'value' => $raw_value, | 'value' => $raw_value, | ||||
| ); | ); | ||||
| } | } | ||||
| Show All 14 Lines | |||||