diff --git a/framework/control.class.php b/framework/control.class.php index 64c3b83f90..89b4f0a73e 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -20,8 +20,6 @@ include __DIR__ . '/base/control.class.php'; class control extends baseControl { - public $redis = false; - /** * Check requiredFields and set exportFields for workflow. * @@ -37,8 +35,6 @@ class control extends baseControl $this->app->setOpenApp(); - if($this->config->redis) $this->redis = $this->app->redis; - if($this->config->edition == 'open') return false; /* Code for task #9224. Set requiredFields for workflow. */ diff --git a/framework/model.class.php b/framework/model.class.php index fc17aa518e..626b0d1678 100644 --- a/framework/model.class.php +++ b/framework/model.class.php @@ -20,15 +20,6 @@ include __DIR__ . '/base/model.class.php'; class model extends baseModel { - public $redis = false; - - public function __construct($appName = '') - { - parent::__construct($appName); - - if($this->config->redis) $this->redis = $this->app->redis; - } - /** * 企业版部分功能是从然之合并过来的。ZDOO代码中调用loadModel方法时传递了一个非空的appName,在禅道中会导致错误。 * 调用父类的loadModel方法来避免这个错误。