if ( $factory->laggedSlaveUsed() ) {
$maxAge = $this->config->get( 'CdnMaxageLagged' );
$this->context->getOutput()->lowerCdnMaxage( $maxAge );
+ $request->response()->header( "X-Database-Lagged: true" );
wfDebugLog( 'replication', "Lagged DB used; CDN cache TTL limited to $maxAge seconds" );
}
}
Profiler::instance()->getTransactionProfiler()->resetExpectations();
// Do any deferred jobs
- DeferredUpdates::doUpdates( 'commit', 'enqueue' );
+ DeferredUpdates::doUpdates( 'enqueue' );
// Make sure any lazy jobs are pushed
JobQueueGroup::pushLazyJobs();