Fix the cascade protection templatelinks update routine, which apparently has been...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 16 Feb 2009 08:11:39 +0000 (08:11 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 16 Feb 2009 08:11:39 +0000 (08:11 +0000)
commit65eb2098e15dd0bdd64f1f18eb46943be3a9e592
tree9510d43ebf803d155737b239436d56de9baa21e9
parentbad160b9592bf1a6950c121943bc570bb2b94801
Fix the cascade protection templatelinks update routine, which apparently has been broken since it was introduced, causing it to flood the job queue with refreshLinks job on every parser cache miss:
* Fixed incorrect interpretation of the result of $parserOutput->getTemplates() which led to the array_diff() always being non-empty
* No need to check for $db->select()===false, it throws an exception in that case
* Do a non-recursive update, no need to update links for other pages on a page view
includes/Article.php