ParserOptions::legacyOptions() has been sitting around since 1.17. Originally it seems to have been intended as a way to avoid a mass cache invalidation (similar to optionsHashPre30() from I7fb9ffca9). That code was mostly removed in 1.23, but legacyOptions() was left behind because it was also being used in a few places as "all cache-varying options" (despite it not being documented for that purpose) where we'd rather have any key than no key at all. This patch creates an actual ParserOptions::allCacheVaryingOptions() method for those use cases and deprecates the long-obsolete legacyOptions(). It also makes more explicit the use of the "all cache-varying options" fallback in ParserCache::getKey(), and doesn't bother trying to use that fallback in ParserCache::get() where it no longer makes sense. Change-Id: Ife1e54744155136a570210c03fe907f18f8e8ece |
||
|---|---|---|
| .. | ||
| MagicVariableTest.php | ||
| ParserIntegrationTest.php | ||
| ParserMethodsTest.php | ||
| ParserOptionsTest.php | ||
| ParserOutputTest.php | ||
| ParserPreloadTest.php | ||
| PreprocessorTest.php | ||
| TagHooksTest.php | ||
| TidyTest.php | ||