Index: trunk/extensions/MobileFrontend/ApiQueryExcerpt.php |
— | — | @@ -30,7 +30,8 @@ |
31 | 31 | private function getExcerpt( Title $title, $plainText ) { |
32 | 32 | global $wgMemc; |
33 | 33 | |
34 | | - $key = wfMemcKey( 'mf', 'excerpt', $title->getPrefixedDBkey(), $title->getArticleID() ); |
| 34 | + $wp = WikiPage::factory( $title ); |
| 35 | + $key = wfMemcKey( 'mf', 'excerpt', $plainText, $title->getArticleID(), $wp->getLatest() ); |
35 | 36 | $text = $wgMemc->get( $key ); |
36 | 37 | if ( $text !== false ) { |
37 | 38 | return $text; |
— | — | @@ -38,7 +39,6 @@ |
39 | 40 | if ( !$this->parserOptions ) { |
40 | 41 | $this->parserOptions = new ParserOptions( new User( '127.0.0.1' ) ); |
41 | 42 | } |
42 | | - $wp = WikiPage::factory( $title ); |
43 | 43 | $pout = $wp->getParserOutput( $this->parserOptions ); |
44 | 44 | $text = $this->processText( $pout->getText(), $title, $plainText ); |
45 | 45 | $wgMemc->set( $key, $text ); |