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 ) )
69 ->caller( $fname )->execute();
70 if ( count( $idBatches ) > 1 ) {
71 $dbProvider->commitAndWaitForReplication( $fname, $ticket );
80class_alias( PurgeJobUtils::class,
'PurgeJobUtils' );
A class containing constants representing the names of configuration variables.
const UpdateRowsPerQuery
Name constant for the UpdateRowsPerQuery setting, for use with Config::get()