From: Aaron Schulz Date: Fri, 24 May 2013 18:46:56 +0000 (-0700) Subject: De-duplicate refreshLinks2 base jobs on insert. X-Git-Tag: 1.31.0-rc.0~19566^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=ee5cd173ece85ea0b0d5f99ab2b293013a3b5947;p=lhc%2Fweb%2Fwiklou.git De-duplicate refreshLinks2 base jobs on insert. * This should work better and take up less space than using root job de-duplication alone. Change-Id: Ie339ccf0eed93f5d525a24519d20811de8f6c0b5 --- diff --git a/includes/job/jobs/RefreshLinksJob.php b/includes/job/jobs/RefreshLinksJob.php index e9f017be97..563ce2fafe 100644 --- a/includes/job/jobs/RefreshLinksJob.php +++ b/includes/job/jobs/RefreshLinksJob.php @@ -112,6 +112,8 @@ class RefreshLinksJob extends Job { class RefreshLinksJob2 extends Job { function __construct( $title, $params, $id = 0 ) { parent::__construct( 'refreshLinks2', $title, $params, $id ); + // Base jobs for large templates can easily be de-duplicated + $this->removeDuplicates = !isset( $params['start'] ) && !isset( $params['end'] ); } /**