// compiling succeded
if (!
$this->source->recompiled &&
$this->compiler->write_compiled_code
) { // write compiled template
$_filepath =
$this->compiled->filepath;
if ($_filepath === false
) throw new SmartyException('getCompiledFilepath() did not return a destination to save the compiled template to'
);
Smarty_Internal_Write_File::
writeFile($_filepath,
$code,
$this->smarty
);
$this->compiled->exists = true;
$this->compiled->isCompiled = true;
} if ($this->smarty->debugging
) { Smarty_Internal_Debug::
end_compile($this);
} // release compiler object to free memory
unset($this->compiler
);
} /**
* Writes the cached template output
*
* @return bool
*/
public function writeCachedContent($content) {