/** * Директива @cache * * @param $model * @param string|null $key * * @return bool */ public function cache($model, $key = null) { ob_start(); return $this->cache->has($this->applyKey($model, $key)); }