yii\caching\FileCache::init PHP Method

init() public method

Initializes this component by ensuring the existence of the cache path.
public init ( )
    public function init()
    {
        parent::init();
        $this->cachePath = Yii::getAlias($this->cachePath);
        if (!is_dir($this->cachePath)) {
            FileHelper::createDirectory($this->cachePath, $this->dirMode, true);
        }
    }