Angejia\Pea\Model::needCache PHP Method

needCache() public method

public needCache ( )
    public function needCache()
    {
        return $this->needCache && !self::$disableReadCache;
    }

Usage Example

Beispiel #1
0
 private function needCache()
 {
     // TODO 如果没有设置 model,则认为不用处理缓存逻辑
     if (!$this->model) {
         return false;
     }
     return $this->model->needCache();
 }