43 if ( $dbkeys === [] ) {
51 static function () use ( $dbw, $namespace, $dbkeys, $fname ) {
52 $services = MediaWikiServices::getInstance();
53 $dbProvider = $services->getConnectionProvider();
61 ->where( [
'page_namespace' => $namespace ] )
62 ->andWhere( [
'page_title' => $dbkeys ] )
63 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
64 ->caller( $fname )->fetchFieldValues();
71 $services->getMainConfig()->get( MainConfigNames::UpdateRowsPerQuery );
72 $ticket = $dbProvider->getEmptyTransactionTicket( $fname );
73 $idBatches = array_chunk( $ids, $batchSize );
74 foreach ( $idBatches as $idBatch ) {
77 ->set( [
'page_touched' => $now ] )
78 ->where( [
'page_id' => $idBatch ] )
79 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
80 ->caller( $fname )->execute();
81 if ( count( $idBatches ) > 1 ) {
82 $dbProvider->commitAndWaitForReplication( $fname, $ticket );