Index: branches/wmf/1.17wmf1/includes/parser/ParserCache.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | |
44 | 44 | // idhash seem to mean 'page id' + 'rendering hash' (r3710) |
45 | 45 | $pageid = $article->getID(); |
46 | | - $renderkey = (int)($wgRequest->getVal('action') == 'render') + 2*(int)($wgRequest->getVal('action') == 'parse'); |
| 46 | + $renderkey = (int)($wgRequest->getVal('action') == 'render') + 3*(int)($wgRequest->getVal('action') == 'parse'); |
47 | 47 | |
48 | 48 | $key = wfMemcKey( 'pcache', 'idhash', "{$pageid}-{$renderkey}!{$hash}" ); |
49 | 49 | return $key; |
Index: branches/wmf/1.17wmf1/includes/Title.php |
— | — | @@ -821,7 +821,7 @@ |
822 | 822 | |
823 | 823 | // Ugly quick hack to avoid duplicate prefixes (bug 4571 etc) |
824 | 824 | // Correct fix would be to move the prepending elsewhere. |
825 | | - if ( $wgRequest->getVal( 'action' ) != 'render' ) { |
| 825 | + if ( $wgRequest->getVal( 'action' ) != 'render' && $wgRequest->getVal( 'action' ) != 'parse' ) { |
826 | 826 | $url = $wgServer . $url; |
827 | 827 | } |
828 | 828 | } else { |