46 if ( $dbkeys === [] ) {
54 static function () use ( $dbw, $namespace, $dbkeys, $fname ) {
56 $dbProvider = $services->getConnectionProvider();
64 ->where( [
'page_namespace' => $namespace ] )
65 ->andWhere( [
'page_title' => $dbkeys ] )
66 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
67 ->caller( $fname )->fetchFieldValues();
75 $ticket = $dbProvider->getEmptyTransactionTicket( $fname );
76 $idBatches = array_chunk( $ids, $batchSize );
77 foreach ( $idBatches as $idBatch ) {
80 ->set( [
'page_touched' => $now ] )
81 ->where( [
'page_id' => $idBatch ] )
82 ->andWhere( $dbw->
expr(
'page_touched',
'<', $now ) )
83 ->caller( $fname )->execute();
84 if ( count( $idBatches ) > 1 ) {
85 $dbProvider->commitAndWaitForReplication( $fname, $ticket );
94class_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()