Reset Title cache when importing titles.
authordaniel <daniel.kinzler@wikimedia.de>
Sun, 24 May 2015 15:50:24 +0000 (17:50 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Sun, 24 May 2015 15:55:08 +0000 (17:55 +0200)
commita43af3bc0e12d99b83a1e0cd2713cf7785f1f33c
tree0792764c0b95bff280074251a53b6afe34a33c75
parentaf2f7e00c318c229ded4bc66c33aac54cf7fe6b1
Reset Title cache when importing titles.

WikiImporter now uses NaiveImportTitleFactory, which in turn uses Title::makeTitleSafe,
bypassing the internal title cache. To avoid (potentially cached) Title objects obtained
via Title::newFromText getting out of sync, WikiImporter now clears the title
cache in addition to clearing the LinkCache.

NOTE: a test for this is provided by I2be12fa7d439b.

Bug: T89307
Change-Id: Ib50c48d4797fc21c62090c0be69e87f7e7d07428
includes/Import.php
includes/Title.php
tests/phpunit/includes/TitleMethodsTest.php