Made WikiPage::isRedirect() actually use page_is_redirect
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Oct 2015 10:32:01 +0000 (03:32 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Oct 2015 10:32:01 +0000 (03:32 -0700)
commit7d4a930c95cce41cdea2774375ee7f5aa6a99623
tree09c4ec6f9c2a7fc839d64b79a6cd12ccc2964cd0
parent29b5bf4de99645c190ac7589873b9f4a868fbf69
Made WikiPage::isRedirect() actually use page_is_redirect

* Previously it would always fetch the whole content,
  which is silly since followRedirect() uses the redirect
  table to avoid loading the text. The initializeArticle()
  uses isRedirect() and then possibly followRedirect(). It
  makes no sense for the former to fetch all the text anway.
* The time fetching the text showed up on xenon flamegraphs.

Change-Id: I2dc216f36d3a0ea2285e64122b4d07bd9c8ae703
includes/page/WikiPage.php