Made LinksUpdate on edit use the job queue
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 30 Sep 2015 19:30:22 +0000 (12:30 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Oct 2015 08:02:03 +0000 (01:02 -0700)
commit1846e2dc15e957c557efad75f4e99f5a73c38aaa
treedd5df88032c3799be5fd326d7e0d5e9ff4a91343
parentf056a3b4a2589fb31519378169ac58ca8581e3ab
Made LinksUpdate on edit use the job queue

* LinksUpdate is now an EnqueueableDataUpdate
  and can yeild a prioritzed refreshLinks job.
* DeferredUpdates::runUpdates() now takes an enqueue
  flag to try to use jobs. This is set in restInPeace().
  Updates that change many links will be less likely to
  increase lag, as the runners are more strict about that.
* Also made the LinksDeletionUpdate job enqueue happen
  post-send on page deletion for consistency

Bug: T95501
Change-Id: I8863caef9c8f03234699d33e4d47d2310a0c8446
includes/MediaWiki.php
includes/deferred/DeferredUpdates.php
includes/deferred/LinksUpdate.php
includes/page/WikiPage.php