Fixed project/config for worker
This commit is contained in:
parent
51df9e81c3
commit
6d99ca50a1
|
@ -573,15 +573,7 @@ class BuildBase extends Model
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cacheKey = 'Cache.Project.' . $key;
|
return Factory::getStore('Project', 'PHPCensor')->getById($key);
|
||||||
$rtn = $this->cache->get($cacheKey, null);
|
|
||||||
|
|
||||||
if (empty($rtn)) {
|
|
||||||
$rtn = Factory::getStore('Project', 'PHPCensor')->getById($key);
|
|
||||||
$this->cache->set($cacheKey, $rtn);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $rtn;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue