Title: Always add title to LinkCache when necessary (in 3 methods)
authorKevin Israel <pleasestand@live.com>
Thu, 15 Jan 2015 22:24:03 +0000 (17:24 -0500)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 23 Jan 2015 20:19:32 +0000 (12:19 -0800)
commit50c9bbfbd50e726bf8fe5f5629582e7f71f97dba
treee751ca6f0d484ea004847f38fb84eebb538d2e17
parent9a0e7169fc059fb7f424c476b99bf686802e974b
Title: Always add title to LinkCache when necessary (in 3 methods)

Unless Title::GAID_FOR_UPDATE is specified, Title::getArticleID() will not
use the link cache if the Title already has the ID of the page. Account for
this by directly calling LinkCache::addLinkObj() in three other methods of
Title: getContentModel(), isRedirect(), and getLength().

Follows-up r33008 (aed9d4b91218) and dd5c1b7fb7ff, and reapplies part of
388b14a15de6.

Bug: T86974
Change-Id: I7eff0bffd4f632ceb8d2124af317d684dbcaf2cb
RELEASE-NOTES-1.25
includes/Title.php