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
This commit is contained in:
umherirrender 2016-02-02 20:38:36 +01:00
parent f8e44b8b11
commit 097b8ce76f

View file

@ -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 ) {