wiki.techinc.nl/tests/phpunit/includes/cache
daniel 9e49260fc9 Make LinkCache behavior more consistent
This patch does several things to LinkCache to make its behavior more
consistent and predictable:

* Methods that set a "good" link now clear the "bad link" flag, and vice
  versa.

* invalidateTitle() now also clears the local cache, not just the
  persistent cache.

* Attempts to set data for LinkTargets that are not proper local pages
  are ignored.

* All methods now accept LinkTarget|PageRecord as the key.
  The ones that previously accepted a string still allow that as well.

* addLinkObject() now consistently uses the local cache if possible,
  and consistently bypasses it if the forUpdate() flag is set.

This is all done in preparation for LinkCache being used inside PageStore.

Bug: T278940
Change-Id: I62107789fa185606a81be20ffa8f0be48297c08f
2021-06-24 18:25:55 +02:00
..
GenderCacheTest.php GenderCacheTest: fix call to overrideMwServices() 2021-05-12 07:37:19 +00:00
LinkBatchTest.php LinkBatch: skip bad input 2021-05-07 16:22:24 +02:00
LinkCacheTest.php Make LinkCache behavior more consistent 2021-06-24 18:25:55 +02:00
LocalisationCacheTest.php Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
MessageCacheTest.php Optimise MessageCache::isMainCacheable() for the single-message case 2021-05-12 14:19:59 +10:00