function _compile_resource($resource_name, $compile_path, $is_literal = 0)
 {
     $result = parent::_compile_resource($resource_name, $compile_path, $is_literal);
     if ($result && $this->compile_check_md5) {
         $tpl_source = $this->_read_file($compile_path);
         if ($tpl_source !== false) {
             $_params = array('filename' => $compile_path . '.md5', 'contents' => md5($compile_path . $tpl_source), 'create_dirs' => true);
             smarty_core_write_file($_params, $this);
         }
     }
     return $result;
 }