From 5b26e083b080fd40aecdd587a306f20a6b8e9a42 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 20 Oct 2015 14:46:17 -0700 Subject: [PATCH] Push post-edit RefreshLinks jobs into 'refreshLinksPrioritized' Previously the 'prioritize' flag was set in getAsJobSpecification() but the job still went into the regular 'refreshLinks' queue. Since the parser cache was just saved, they should be fast to run. The separate queue stops them from getting stuck behind template updates. Change-Id: I46c5760702d862dc9288618ee5eff3897f6e838b --- includes/deferred/LinksUpdate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index d1386c6e75..b96fa46d94 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -993,7 +993,11 @@ class LinksUpdate extends SqlDataUpdate implements EnqueueableDataUpdate { 'wiki' => $this->mDb->getWikiID(), 'job' => new JobSpecification( 'refreshLinks', - array( 'prioritize' => true ), + array( + 'prioritize' => true, + // Reuse the parser cache if it was saved + 'rootJobTimestamp' => $this->mParserOutput->getCacheTime() + ), array( 'removeDuplicates' => true ), $this->getTitle() ) -- 2.20.1