Index: trunk/phase3/includes/User.php |
— | — | @@ -2442,7 +2442,7 @@ |
2443 | 2443 | * @return \type{\string} Page rendering hash |
2444 | 2444 | */ |
2445 | 2445 | function getPageRenderingHash() { |
2446 | | - global $wgContLang, $wgUseDynamicDates, $wgLang; |
| 2446 | + global $wgUseDynamicDates, $wgRenderHashAppend, $wgLang, $wgContLang; |
2447 | 2447 | if( $this->mHash ){ |
2448 | 2448 | return $this->mHash; |
2449 | 2449 | } |
— | — | @@ -2462,6 +2462,8 @@ |
2463 | 2463 | $extra = $wgContLang->getExtraHashOptions(); |
2464 | 2464 | $confstr .= $extra; |
2465 | 2465 | |
| 2466 | + $confstr .= $wgRenderHashAppend; |
| 2467 | + |
2466 | 2468 | // Give a chance for extensions to modify the hash, if they have |
2467 | 2469 | // extra options or other effects on the parser cache. |
2468 | 2470 | wfRunHooks( 'PageRenderingHash', array( &$confstr ) ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1037,6 +1037,12 @@ |
1038 | 1038 | $wgEnableParserCache = true; |
1039 | 1039 | |
1040 | 1040 | /** |
| 1041 | + * Append a configured value to the parser cache and the sitenotice key so |
| 1042 | + * that they can be kept separate for some class of activity. |
| 1043 | + */ |
| 1044 | +$wgRenderHashAppend = ''; |
| 1045 | + |
| 1046 | +/** |
1041 | 1047 | * If on, the sidebar navigation links are cached for users with the |
1042 | 1048 | * current language set. This can save a touch of load on a busy site |
1043 | 1049 | * by shaving off extra message lookups. |