HomePhabricator

Optimized wfIsBadImage() redirect check

Description

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

Details

Provenance
aaronAuthored on
ReedyCommitted on Sep 27 2015, 2:43 PM
Parents
rMWf6cf64e10e1d: Make lines short to pass phpcs in KafkaHandler.php
Branches
Unknown
Tags
Unknown
ChangeId
I7e2a1c6acf853629fcca3a8b3c2c810ebacd2acb