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
This commit is contained in:
Aaron Schulz 2015-05-20 16:01:51 -07:00
parent e1611fec8d
commit e58e4b498d
2 changed files with 4 additions and 0 deletions

View file

@ -94,6 +94,8 @@ if ( function_exists( 'fastcgi_finish_request' ) ) {
fastcgi_finish_request();
}
JobQueueGroup::pushLazyJobs();
// Execute any deferred updates
DeferredUpdates::doUpdates();

View file

@ -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();