static $l1cache = array();
$fname = "wfMsg";
+ wfProfileIn( $fname );
$message = false;
$l1hit = false;
$obj = wfFetchObject( $res );
$message = $obj->cur_text;
wfFreeResult( $res );
- $wgMemc->set( $key, $message, time() + 1800 );
+ $wgMemc->set( $mcKey, $message, 0 /*time() + 1800*/ );
}
}
}
if( count( $args ) ) {
$message = str_replace( $wgReplacementKeys, $args, $message );
}
+
+ wfProfileOut( $fname );
if ( "" == $message ) {
- # Let's at least _try_ to be graceful about this.
+ # Failed, message not translated
return "<$key>";
}
return $message;