wiki.techinc.nl/includes/diff
Kunal Mehta 23ebfcddc4 DifferenceEngine: Improve cache invalidation
Invalidate the diff cache if the engine producing the diff changes, or
if a configuration setting that controls the diff output changes. This
is probably what most users expect, that changing the configuration will
result in a change for diffs that may have already been viewed.

For wikidiff2 specifically, a change in version or
$wgWikiDiff2MovedParagraphDetectionCutoff will invalidate the cache.

Refactor engine detection and sanity-checking into a private getEngine()
function.

As part of this getDiffBodyCacheKey() was deprecated, and subclasses
should implement getDiffBodyCacheKeyParams() instead. Drop the
deprecated and unused MW_DIFF_VERSION constant while we're at it, and
bump DIFF_VERSION since we're already changing the cache key format.

Bug: T180043
Change-Id: I4e386ca05bd2a2fb54208d760c131eb42e3a72ab
2017-11-21 12:10:11 +01:00
..
ArrayDiffFormatter.php
ComplexityException.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DairikiDiff.php Remove auto-generated "Constructor" documentation on constructors 2017-07-21 12:19:30 +02:00
DiffEngine.php Remove empty lines at begin of function, if, foreach, switch 2017-07-01 11:34:16 +00:00
DifferenceEngine.php DifferenceEngine: Improve cache invalidation 2017-11-21 12:10:11 +01:00
DiffFormatter.php Add missing & to @param documentation to match functon call 2017-08-11 18:47:46 +02:00
TableDiffFormatter.php Remove empty lines at begin of function, if, foreach, switch 2017-07-01 11:34:16 +00:00
UnifiedDiffFormatter.php
WordAccumulator.php Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
WordLevelDiff.php Change @inheritdoc to @inheritDoc 2017-08-11 16:49:52 +02:00