Index: trunk/phase3/includes/DifferenceEngine.php |
— | — | @@ -6,6 +6,14 @@ |
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** |
| 10 | + * Constant to indicate diff cache compatibility. |
| 11 | + * Bump this when changing the diff formatting in a way that |
| 12 | + * fixes important bugs or such to force cached diff views to |
| 13 | + * clear. |
| 14 | + */ |
| 15 | +define( 'MW_DIFF_VERSION', '1.11' ); |
| 16 | + |
| 17 | +/** |
10 | 18 | * @todo document |
11 | 19 | * @public |
12 | 20 | * @addtogroup DifferenceEngine |
— | — | @@ -323,7 +331,7 @@ |
324 | 332 | $key = false; |
325 | 333 | if ( $this->mOldid && $this->mNewid ) { |
326 | 334 | // Try cache |
327 | | - $key = wfMemcKey( 'diff', 'oldid', $this->mOldid, 'newid', $this->mNewid ); |
| 335 | + $key = wfMemcKey( 'diff', 'version', MW_DIFF_VERSION, 'oldid', $this->mOldid, 'newid', $this->mNewid ); |
328 | 336 | $difftext = $wgMemc->get( $key ); |
329 | 337 | if ( $difftext ) { |
330 | 338 | wfIncrStats( 'diff_cache_hit' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -62,6 +62,7 @@ |
63 | 63 | Diff style rules have been broken out to common/diff.css, |
64 | 64 | and the dupes removed from the default skin files. |
65 | 65 | Skins can still override the default rules. |
| 66 | +* (bug 1229) Balance columns in diff display evenly |
66 | 67 | |
67 | 68 | |
68 | 69 | == MediaWiki API changes since 1.10 == |