Option to load restrictions from DB_MASTER
authorElliott Eggleston <ejegg@ejegg.com>
Fri, 14 Dec 2018 20:06:53 +0000 (15:06 -0500)
committerMepps <mepps@wikimedia.org>
Tue, 18 Dec 2018 15:10:00 +0000 (15:10 +0000)
commit84460b0862cbbff31d55cefe7e5043686351d507
treee3243622917c1cc010e474a6eaf1a857959abb29
parent28e86e10881a04c44248168f902cf9cc25812cf0
Option to load restrictions from DB_MASTER

Adds a $readLatest parameter to Title::loadRestrictions that skips
the replica DBs and goes straight to the master DB to get the latest.

TODO: should I add $readLatest to all the getRestrictions* functions?

Bug: T210983
Change-Id: I834de033fb79870de7d081701693663fb6ee93d3
includes/Title.php