Flush lazy jobs in load.php and api.php too
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 20 May 2015 23:01:51 +0000 (16:01 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 20 May 2015 23:01:51 +0000 (16:01 -0700)
* A more proper solution will have one method for all this stuff

Bug: T99775
Bug: T99849
Change-Id: I16a32b260386a85504eb85ea58f1156b4e581a83

api.php
load.php

diff --git a/api.php b/api.php
index 7775158..9721c4f 100644 (file)
--- 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();
 
index ef2df31..d77a689 100644 (file)
--- 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();