wiki.techinc.nl/tests/phpunit/includes/cache
Martin Urbanec b406c52adb LinkCache: Try invalidating cache before throwing
The code that was previously in LinkCache::getGoodLinkRow
may return a cached row object (either from the in-process
cache, or memcached). In some cases, this caused
LinkCache::addGoodLinkObjFromRow to throw, because a field
was missing (although the field is missing only from
the cached copy, not from the database).

To avoid this, try to invalidate the cache
in LinkCache::getGoodLinkRow and retry, before
letting the exception propagate.

Bug: T205349
Change-Id: Ie9e90bf32964047c1831f575cc260d7d62e9e848
2021-11-02 13:10:45 +00:00
..
BacklinkCacheTest.php Title: Make use of BacklinkCacheFactory service 2021-09-09 14:04:02 +01:00
GenderCacheTest.php Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
LinkBatchTest.php LinkBatch: skip bad input 2021-05-07 16:22:24 +02:00
LinkCacheTest.php LinkCache: Try invalidating cache before throwing 2021-11-02 13:10:45 +00:00
LinkCacheTestTrait.php LinkCache: soft deprecate addGoodLinkObj() 2021-09-10 16:00:02 +02:00
LocalisationCacheTest.php Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
MessageCacheTest.php Use PageUpdater's fluent interface 2021-10-05 07:18:17 +01:00