diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index db6e2bb8b0e..2fcdc38824f 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -91,7 +91,7 @@ class ApiParse extends ApiBase { $popts->enableLimitReport( !$params['disablepp'] ); // If for some reason the "oldid" is actually the current revision, it may be cached - if ( $titleObj->getLatestRevID() === intval( $oldid ) ) { + if ( $rev->isCurrent() ) { // May get from/save to parser cache $p_result = $this->getParsedSectionOrText( $pageObj, $popts, $pageid, isset( $prop['wikitext'] ) ) ;