protected function initCachePath()
    {
        $cachePath = empty($this->cachePath) ? false : Yii::getAlias($this->cachePath);

        if (!empty($cachePath) && !file_exists($cachePath)) {
            FileHelper::createDirectory($cachePath);
        }

        return $cachePath;
    }
protected function initCachePath()
    {
        $cachePath = empty($this->cachePath) ? false : Yii::getAlias($this->cachePath);

        if (!empty($cachePath) && !file_exists($cachePath)) {
            FileHelper::createDirectory($cachePath);
        }

        return $cachePath;
    }
protected function initCachePath ( ) { $ cachePath = empty ( $ this -> cachePath ) ? false : Yii :: getAlias ( $ this -> cachePath ) ; if ( ! empty ( $ cachePath ) && ! file_exists ( $ cachePath ) ) { FileHelper :: createDirectory ( $ cachePath ) ; } return $ cachePath ; }
Create if needed and return the cache path calculated from ViewRenderer `cachePath` parameter.

@throws \yii\base\Exception

@return bool|string
Create if needed and return the cache path calculated from ViewRenderer cachePath parameter .