32 if ( $dbkeys === [] ) {
40 static function () use ( $dbw, $namespace, $dbkeys, $fname ) {
42 $dbProvider = $services->getConnectionProvider();
50 ->where( [
'page_namespace' => $namespace ] )
51 ->andWhere( [
'page_title' => $dbkeys ] )
52 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
53 ->caller( $fname )->fetchFieldValues();
61 $ticket = $dbProvider->getEmptyTransactionTicket( $fname );
62 $idBatches = array_chunk( $ids, $batchSize );
63 foreach ( $idBatches as $idBatch ) {
66 ->set( [
'page_touched' => $now ] )
67 ->where( [
'page_id' => $idBatch ] )
68 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
71 $services->getLinkWriteDuplicator()->duplicate( $update );
72 if ( count( $idBatches ) > 1 ) {
73 $dbProvider->commitAndWaitForReplication( $fname, $ticket );