From 097b8ce76f59e2405f01fd573d05e29e36a39ba3 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 2 Feb 2016 20:38:36 +0100 Subject: [PATCH] Pass WikiPage objects to ParserCache ParserCache::get is documented for WikiPage, so do it from Article class This avoids magic calls due Article::__call Change-Id: I92b91bd112383d1c0132530c3325b39596d95768 --- includes/page/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/page/Article.php b/includes/page/Article.php index f16158b875..f67ebcc9cc 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -521,7 +521,7 @@ class Article implements Page { # Try client and file cache if ( !$wgDebugToolbar && $oldid === 0 && $this->mPage->checkTouched() ) { if ( $wgUseETag ) { - $outputPage->setETag( $parserCache->getETag( $this, $parserOptions ) ); + $outputPage->setETag( $parserCache->getETag( $this->mPage, $parserOptions ) ); } # Use the greatest of the page's timestamp or the timestamp of any @@ -595,7 +595,7 @@ class Article implements Page { # Try the parser cache if ( $useParserCache ) { - $this->mParserOutput = $parserCache->get( $this, $parserOptions ); + $this->mParserOutput = $parserCache->get( $this->mPage, $parserOptions ); if ( $this->mParserOutput !== false ) { if ( $oldid ) { -- 2.20.1