public function setCachePath($path, $templatesRoot = null) {
	    // Suppress the trailing slash
		$this->cachePath = preg_replace('#/+$#', '', $path);
		$this->templatesRoot = preg_replace('#/+$#', '', $templatesRoot);
	}