From 116f3550b85c2e749107fa15da2820a3122fdd13 Mon Sep 17 00:00:00 2001 From: Liangent Date: Fri, 21 Dec 2012 19:56:01 +0800 Subject: [PATCH] (bug 43316) Don't fetch revision ID when a page doesn't exist. Fixes I90446b7b. Change-Id: I429653942bc388b6658b956d36d16398bbcf04e5 --- includes/actions/InfoAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 06c2894a55..f1799a4631 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -172,7 +172,7 @@ class InfoAction extends FormlessAction { $title = $this->getTitle(); $id = $title->getArticleID(); - $memcKey = wfMemcKey( 'infoaction', $title->getPrefixedText(), $this->page->getRevision()->getId() ); + $memcKey = wfMemcKey( 'infoaction', $title->getPrefixedText(), $this->page->getLatest() ); $pageCounts = $wgMemc->get( $memcKey ); if ( $pageCounts === false ) { // Get page information that would be too "expensive" to retrieve by normal means -- 2.20.1