Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Nov 3, 2015
2 parents d045adc + c804dbe commit 44b83a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/PlatformCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,10 @@ protected function getEnvironment($id, Project $project = null, $refresh = false
protected function getAccount(ProjectAccess $user, $reset = false)
{
$cacheKey = 'account-' . $user->id;
if ($reset || !($details = self::$cache->fetch($cacheKey))) {
$cache = CacheUtil::getCache();
if ($reset || !($details = $cache->fetch($cacheKey))) {
$details = $user->getAccount()->getProperties();
self::$cache->save($cacheKey, $details, $this->usersTtl);
$cache->save($cacheKey, $details, $this->usersTtl);
}

return $details;
Expand Down

0 comments on commit 44b83a8

Please sign in to comment.