Request-local caching of image_redirect
authorOri Livneh <ori@wikimedia.org>
Thu, 24 Mar 2016 22:50:44 +0000 (15:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 25 Mar 2016 19:09:10 +0000 (12:09 -0700)
commitd1c4eafef54f638ef025816b17502250a5be9e73
treeff2953cfc6f048207af7e1007194d67756ff37e9
parent34dc7a297facc702593aa0460056607b0cf91326
Request-local caching of image_redirect

LocalRepo::checkRedirect() cache image redirect checks in memory to avoid
unnecessary trips to memcached. Same idea as Idbd11637.

Change-Id: Idaa12376382aaa0bd8cb988240ec1da0b688359d
includes/filerepo/LocalRepo.php
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/MediaWikiTestCase.php