Compile the source and write the compiled template to disk.
public function updateCompiledTemplate($cache_filename, $name) {
$source = $this->loader
->getSource($name);
$compiled_source = $this
->compileSource($source, $name);
$this
->storage()
->save($cache_filename, $compiled_source);
// Save the last modification time
$cid = 'twig:' . $cache_filename;
$this->cache_object
->set($cid, REQUEST_TIME);
}