优化 缓存代码细节

This commit is contained in:
Discuz! 2017-02-13 12:38:53 +08:00
parent 431d694e43
commit 506268477d
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class memory_driver_memcache {
public function init($config) {
if (!$this->env()) {
$this->enable = false;
return;
}
if (!empty($config['server'])) {
$this->obj = new Memcache;

View File

@ -23,6 +23,7 @@ class memory_driver_redis {
function init($config) {
if(!$this->env()) {
$this->enable = false;
return;
}
if (!empty($config['server'])) {