X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FLinkCache.php;h=b2f24525a5963a1ba3fafacfe972de02385b568a;hb=f6059f9fab6ab5914dd70b57db949736153ed6a9;hp=1bcf948d2df31d9a583ce2165982a9943bbf1251;hpb=1d1bb122942d2ca6e557dc13e2d198276ce65ba6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 1bcf948d2d..b2f24525a5 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -89,6 +89,7 @@ class LinkCache { * * @param bool|null $update * @return bool + * @deprecated Since 1.34 */ public function forUpdate( $update = null ) { return wfSetVar( $this->mForUpdate, $update ); @@ -306,7 +307,7 @@ class LinkCache { private function isCacheable( LinkTarget $title ) { $ns = $title->getNamespace(); - if ( in_array( $ns, [ NS_TEMPLATE, NS_FILE, NS_CATEGORY ] ) ) { + if ( in_array( $ns, [ NS_TEMPLATE, NS_FILE, NS_CATEGORY, NS_MEDIAWIKI ] ) ) { return true; } // Focus on transcluded pages more than the main content