From: Aaron Schulz Date: Tue, 20 Oct 2015 21:46:17 +0000 (-0700) Subject: Push post-edit RefreshLinks jobs into 'refreshLinksPrioritized' X-Git-Tag: 1.31.0-rc.0~9326^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=5b26e083b080fd40aecdd587a306f20a6b8e9a42;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() )