X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FLinksUpdate.php;h=2bfdc0edc940baa618b38607e2ea63fafa6d7c09;hb=4b85ae556f1862afafed993c4127d64409f37d3d;hp=74e236fd4d74f5a5d3d6c09003ba2f0bbc014ef6;hpb=29fcd02ef855d0d986f44a722d9b223e63532e0d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 74e236fd4d..2bfdc0edc9 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -125,7 +125,7 @@ class LinksUpdate extends DataUpdate { if ( !$this->mId ) { // NOTE: subclasses may initialize mId before calling this constructor! - $this->mId = $title->getArticleID( Title::GAID_FOR_UPDATE ); + $this->mId = $title->getArticleID( Title::READ_LATEST ); } if ( !$this->mId ) { @@ -1066,6 +1066,7 @@ class LinksUpdate extends DataUpdate { private function invalidateProperties( $changed ) { global $wgPagePropLinkInvalidations; + $jobs = []; foreach ( $changed as $name => $value ) { if ( isset( $wgPagePropLinkInvalidations[$name] ) ) { $inv = $wgPagePropLinkInvalidations[$name]; @@ -1073,12 +1074,16 @@ class LinksUpdate extends DataUpdate { $inv = [ $inv ]; } foreach ( $inv as $table ) { - DeferredUpdates::addUpdate( - new HTMLCacheUpdate( $this->mTitle, $table, 'page-props' ) + $jobs[] = HTMLCacheUpdateJob::newForBacklinks( + $this->mTitle, + $table, + [ 'causeAction' => 'page-props' ] ); } } } + + JobQueueGroup::singleton()->lazyPush( $jobs ); } /** @@ -1192,4 +1197,14 @@ class LinksUpdate extends DataUpdate { return $this->db; } + + /** + * Whether or not this LinksUpdate will also update pages which transclude the + * current page or otherwise depend on it. + * + * @return bool + */ + public function isRecursive() { + return $this->mRecursive; + } }