Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -917,8 +917,11 @@ |
918 | 918 | global $wgUser, $wgParser; |
919 | 919 | # Update the links tables as the stable version may now be the default page... |
920 | 920 | $parserCache = ParserCache::singleton(); |
921 | | - $poutput = $parserCache->get( $article, $wgUser ); |
922 | | - if( $poutput==false ) { |
| 921 | + $anon = new User(); // anon cache most likely to exist |
| 922 | + $poutput = $parserCache->get( $article, $anon ); |
| 923 | + if( $poutput == false && $wgUser->getId() ) |
| 924 | + $poutput = $parserCache->get( $article, $wgUser ); |
| 925 | + if( $poutput == false ) { |
923 | 926 | $text = $article->getContent(); |
924 | 927 | $options = self::makeParserOptions(); |
925 | 928 | $poutput = $wgParser->parse($text, $article->getTitle(), $options); |