From: Aaron Schulz Date: Wed, 20 May 2015 23:01:51 +0000 (-0700) Subject: Flush lazy jobs in load.php and api.php too X-Git-Tag: 1.31.0-rc.0~11344 X-Git-Url: http://git.cyclocoop.org/%27.generer_url_ecrire%28%27admin_couteau_suisse%27%2C%27cmd=descrip&outil=boites_privees?a=commitdiff_plain;h=e58e4b498dcccdc8ce98373e04c27cdfbd4b3a04;p=lhc%2Fweb%2Fwiklou.git Flush lazy jobs in load.php and api.php too * A more proper solution will have one method for all this stuff Bug: T99775 Bug: T99849 Change-Id: I16a32b260386a85504eb85ea58f1156b4e581a83 --- diff --git a/api.php b/api.php index 7775158ba2..9721c4f290 100644 --- a/api.php +++ b/api.php @@ -94,6 +94,8 @@ if ( function_exists( 'fastcgi_finish_request' ) ) { fastcgi_finish_request(); } +JobQueueGroup::pushLazyJobs(); + // Execute any deferred updates DeferredUpdates::doUpdates(); diff --git a/load.php b/load.php index ef2df3126f..d77a689dea 100644 --- a/load.php +++ b/load.php @@ -43,6 +43,8 @@ $configFactory = ConfigFactory::getDefaultInstance(); $resourceLoader = new ResourceLoader( $configFactory->makeConfig( 'main' ) ); $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) ); +JobQueueGroup::pushLazyJobs(); + Profiler::instance()->setTemplated( true ); wfLogProfilingData();