# Parse the text and replace links with placeholders
$wgOut->addWikiText( $text );
# Look up the links in the DB and add them to the link cache
$wgOut->transformBuffer( RLH_FOR_UPDATE );
# Parse the text and replace links with placeholders
$wgOut->addWikiText( $text );
# Look up the links in the DB and add them to the link cache
$wgOut->transformBuffer( RLH_FOR_UPDATE );