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

@ -397,8 +397,8 @@ class BuildError extends Model
return null;
}
$cacheKey = 'Cache.Build.' . $key;
$rtn = $this->cache->get($cacheKey, null);
$cacheKey = 'php-censor.build-' . $key;
$rtn = $this->cache->get($cacheKey);
if (empty($rtn)) {
$rtn = Factory::getStore('Build', 'PHPCensor')->getById($key);