Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/engine/PhabricatorAuthSessionEngine.php
Show First 20 Lines • Show All 803 Lines • ▼ Show 20 Lines | foreach ($keys as $key) { | ||||
PhabricatorHash::digestForIndex($key)); | PhabricatorHash::digestForIndex($key)); | ||||
$cache_map[$select_as] = $key; | $cache_map[$select_as] = $key; | ||||
$cache_idx++; | $cache_idx++; | ||||
} | } | ||||
if ($cache_selects) { | if ($cache_selects) { | ||||
$cache_selects = ', '.implode(', ', $cache_selects); | $cache_selects = qsprintf($conn, ', %LQ', $cache_selects); | ||||
} else { | } else { | ||||
$cache_selects = ''; | $cache_selects = qsprintf($conn, ''); | ||||
} | } | ||||
if ($cache_joins) { | if ($cache_joins) { | ||||
$cache_joins = implode(' ', $cache_joins); | $cache_joins = qsprintf($conn, '%LJ', $cache_joins); | ||||
} else { | } else { | ||||
$cache_joins = ''; | $cache_joins = qsprintf($conn, ''); | ||||
} | } | ||||
return array($cache_selects, $cache_joins, $cache_map, $types_map); | return array($cache_selects, $cache_joins, $cache_map, $types_map); | ||||
} | } | ||||
private function filterRawCacheData( | private function filterRawCacheData( | ||||
PhabricatorUser $user, | PhabricatorUser $user, | ||||
array $types_map, | array $types_map, | ||||
Show All 28 Lines |