$iwData = ObjectCache::getMainWANInstance()->getWithSetCallback(
wfMemcKey( 'interwiki', $prefix ),
+ $wgInterwikiExpiry,
function ( $oldValue, &$ttl, array &$setOpts ) use ( $prefix ) {
$dbr = wfGetDB( DB_SLAVE );
+ $setOpts += Database::getCacheSetOptions( $dbr );
+
$row = $dbr->selectRow(
'interwiki',
Interwiki::selectFields(),
__METHOD__
);
- $setOpts = array( 'since' => $dbr->trxTimestamp() );
-
return $row ? (array)$row : '!NONEXISTENT';
- },
- $wgInterwikiExpiry
+ }
);
if ( is_array( $iwData ) ) {