Skip to content

Commit

Permalink
Merge branch 'bugfix-worker-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Feb 13, 2017
2 parents 51df9e8 + 6d99ca5 commit a249dad
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/PHPCensor/Model/Base/BuildBase.php
Expand Up @@ -573,15 +573,7 @@ public function getProject()
return null;
}

$cacheKey = 'Cache.Project.' . $key;
$rtn = $this->cache->get($cacheKey, null);

if (empty($rtn)) {
$rtn = Factory::getStore('Project', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn);
}

return $rtn;
return Factory::getStore('Project', 'PHPCensor')->getById($key);
}

/**
Expand Down

0 comments on commit a249dad

Please sign in to comment.