Index: branches/iwtransclusion/phase3/includes/Revision.php |
— | — | @@ -905,7 +905,11 @@ |
906 | 906 | // Caching may be beneficial for massive use of external storage |
907 | 907 | global $wgRevisionCacheExpiry, $wgMemc; |
908 | 908 | $textId = $this->getTextId(); |
909 | | - $key = wfMemcKey( 'revisiontext', 'textid', $textId ); |
| 909 | + if( isset( $this->mWikiID ) ) { |
| 910 | + $key = wfForeignMemcKey( $this->mWikiID, 'revisiontext', 'textid', $textId ); |
| 911 | + } else { |
| 912 | + $key = wfMemcKey( 'revisiontext', 'textid', $textId ); |
| 913 | + } |
910 | 914 | if( $wgRevisionCacheExpiry ) { |
911 | 915 | $text = $wgMemc->get( $key ); |
912 | 916 | if( is_string( $text ) ) { |