*
*/
protected static function load( $prefix ) {
- global $wgMemc;
+ global $wgMemc, $wgInterwikiExpiry;
$key = wfMemcKey( 'interwiki', $prefix );
$mc = $wgMemc->get( $key );
$iw = false;
$iw = Interwiki::loadFromArray( $row );
if( $iw ) {
$mc = array( 'iw_url' => $iw->mURL, 'iw_local' => $iw->mLocal, 'iw_trans' => $iw->mTrans );
- $wgMemc->add( $key, $mc );
+ $wgMemc->add( $key, $mc, $wgInterwikiExpiry );
return $iw;
} else {
# Pages like "Command & Conquer 3: Kane's Wrath" may keep checking
# the prefix. Cache the negative result to avoid extra db hits.
- $wgMemc->add( $key, 0 );
+ $wgMemc->add( $key, 0, $wgInterwikiExpiry );
}
return false;
}