Make triggerOpportunisticLinksUpdate() directly use RefreshLinks
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Oct 2015 20:51:59 +0000 (13:51 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Oct 2015 20:55:51 +0000 (20:55 +0000)
commit7a4348640e09bea835620aceab88204c81e81012
treea39f725c8b54163f5280f37bdce1ae9102e93bfa
parent00988216f2e0432bc8e94a860beeb53738ea0736
Make triggerOpportunisticLinksUpdate() directly use RefreshLinks

This makes the jobs *actually* end up in the
'refreshLinksPrioritized' queue rather than 'refreshLinks'.
These jobs can run fast in a higher priority queue since the
output is already cached (much of the point of 'prioritize').
They won't if they get stuck behind regular 'refreshLinks'.

This also avoids the indirection of an intermediate job.
The use of lazyPush() is already enough to prevent the user
from experiencing cross-DC RTT overhead.

Change-Id: I5d0440588db09c299cd70191e5624ffc7ebf04c0
includes/page/WikiPage.php