Replace cache to Symfony/Cache component.

This commit is contained in:
Dmitry Khomutov 2018-02-07 21:33:22 +07:00
commit 1dc8acd263
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
14 changed files with 255 additions and 360 deletions

View file

@ -453,8 +453,8 @@ class Project extends Model
return null;
}
$cacheKey = 'Cache.ProjectGroup.' . $key;
$rtn = $this->cache->get($cacheKey, null);
$cacheKey = 'php-censor.project-group-' . $key;
$rtn = $this->cache->get($cacheKey);
if (empty($rtn)) {
$rtn = Factory::getStore('ProjectGroup', 'PHPCensor')->getById($key);
@ -741,8 +741,8 @@ class Project extends Model
return null;
}
$cacheKey = 'Cache.ProjectEnvironments.' . $key;
$rtn = $this->cache->get($cacheKey, null);
$cacheKey = 'php-censor.project-environments-' . $key;
$rtn = $this->cache->get($cacheKey);
if (empty($rtn)) {
$store = $this->getEnvironmentStore();