Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3148,8 +3148,10 @@ |
3149 | 3149 | * @return String |
3150 | 3150 | */ |
3151 | 3151 | function wfWikiID() { |
3152 | | - global $wgDBprefix, $wgDBname; |
3153 | | - if ( $wgDBprefix ) { |
| 3152 | + global $wgDBprefix, $wgDBname, $wgWikiID; |
| 3153 | + if ( $wgWikiID !== false ) { |
| 3154 | + return $wgWikiID; |
| 3155 | + } elseif ( $wgDBprefix ) { |
3154 | 3156 | return "$wgDBname-$wgDBprefix"; |
3155 | 3157 | } else { |
3156 | 3158 | return $wgDBname; |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4158,6 +4158,14 @@ |
4159 | 4159 | */ |
4160 | 4160 | $wgParserTestRemote = false; |
4161 | 4161 | |
| 4162 | + |
| 4163 | +/** |
| 4164 | + * Overwrite the caching key prefix with custom value. Do not set if using |
| 4165 | + * load balancer, since it depends on the key being in certain format. |
| 4166 | + * @since 1.19 |
| 4167 | + */ |
| 4168 | +$wgWikiID = false; |
| 4169 | + |
4162 | 4170 | /** @} */ # end of profiling, testing and debugging } |
4163 | 4171 | |
4164 | 4172 | /************************************************************************//** |