Optimized wfIsBadImage() redirect check
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 27 Sep 2015 05:14:41 +0000 (22:14 -0700)
committerReedy <reedy@wikimedia.org>
Sun, 27 Sep 2015 14:43:39 +0000 (14:43 +0000)
commit6e115a7cc1475832a240f0c263f4ff8ff8186792
tree12b9dc28f4f50f4dc01356aa7470987e01ad8d92
parentf6cf64e10e1d853708ac617ce5ce3a6f6c6b5b8b
Optimized wfIsBadImage() redirect check

* Callers end up hitting wfFindFile() anyway, so we
  may as well use/prime the process cache. By trying
  to call checkRedirect() manually, it actually just
  caused an extra memcached query.
* 404 pages are often customized to show various
  icons file from sister sites, so this was taking
  up a significant portion of rendering time.

Change-Id: I7e2a1c6acf853629fcca3a8b3c2c810ebacd2acb
includes/GlobalFunctions.php