public function __construct() { $this->document_root = \Craft\Craft::getPathOfAlias('webroot'); $this->cache_dir = $this->document_root . "/cache"; $this->cache_url = $this->makeBaseCacheUrl(); IOHelper::ensureFolderExists($this->cache_dir); }