Merge "Push post-edit RefreshLinks jobs into 'refreshLinksPrioritized'"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 20 Oct 2015 22:35:28 +0000 (22:35 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 20 Oct 2015 22:35:28 +0000 (22:35 +0000)
includes/deferred/LinksUpdate.php

index d1386c6..b96fa46 100644 (file)
@@ -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()
                        )