Execute jobs on all index.php requests.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 20 Jul 2012 20:38:24 +0000 (22:38 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 21 Jul 2012 06:14:43 +0000 (08:14 +0200)
commitaafe047a70383c8420e3bd7132e2f10b96e6ae5a
tree9cd9eb39944b8abfc042bd15b6e63f6dd5aa2c10
parent06166e334a6e454ff73d4a62184d41a556dd0ca2
Execute jobs on all index.php requests.

The problem is that currently deferred updates are not executed
after action=ajax requests or file cache hits. This means that,
e.g. ViewCountUpdates are not executed after file cache hits.
The code to execute jobs (both deferred updates and job queue)
is now in MediaWiki::restInPeace() so that it's also executed
after what is mentioned above, and the remaining code of
MediaWiki::finalCleanup() is moved directly MediaWiki::main()
since that function is only used in one place and it make no
sense to keep a method for such little code.

Change-Id: I6f511a74c59a2e3653c10bfcff9b0d15118e699f
includes/Wiki.php