}
function getKey( &$article, &$user ) {
- global $wgDBname;
+ global $wgDBname, $action;
$hash = $user->getPageRenderingHash();
$pageid = intval( $article->getID() );
- $key = "$wgDBname:pcache:idhash:$pageid-$hash";
+ $renderkey = (int)($action == 'render');
+ $key = "$wgDBname:pcache:idhash:$pageid-$renderkey!$hash";
return $key;
}
* @access public
*/
function getLocalURL( $query = '' ) {
- global $wgLang, $wgArticlePath, $wgScript, $wgMakeDumpLinks;
+ global $wgLang, $wgArticlePath, $wgScript, $wgMakeDumpLinks, $action;
- if ( $this->isExternal() ) {
+ if ( $this->isExternal() || $action == 'render' ) {
return $this->getFullURL();
}