From: Aaron Schulz Date: Mon, 11 Apr 2016 21:49:27 +0000 (-0700) Subject: Flag triggerOpportunisticLinksUpdate() behind $wgMiserMode X-Git-Tag: 1.31.0-rc.0~7317 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ae38a3f60b67632eb012fc1c6d372b02d3c596e1;p=lhc%2Fweb%2Fwiklou.git Flag triggerOpportunisticLinksUpdate() behind $wgMiserMode This has caused job flood or DB load problems too often. Bug: T132318 Change-Id: Ieeaf047e748bdfb980d4d5511c22890bd6f28c67 --- diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 75f083ee03..82e66aa223 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -3503,6 +3503,8 @@ class WikiPage implements Page, IDBAccessObject { return; } + $config = RequestContext::getMain()->getConfig(); + $params = [ 'isOpportunistic' => true, 'rootJobTimestamp' => $parserOutput->getCacheTime() @@ -3513,7 +3515,7 @@ class WikiPage implements Page, IDBAccessObject { JobQueueGroup::singleton()->lazyPush( RefreshLinksJob::newPrioritized( $this->mTitle, $params ) ); - } elseif ( $parserOutput->hasDynamicContent() ) { + } elseif ( !$config->get( 'MiserMode' ) && $parserOutput->hasDynamicContent() ) { // Assume the output contains "dynamic" time/random based magic words. // Only update pages that expired due to dynamic content and NOT due to edits // to referenced templates/files. When the cache expires due to dynamic content,