HomePhabricator

rebuildLocalisationCache after update.php

Authored by hashar on Jul 19 2018, 2:46 PM.

Description

rebuildLocalisationCache after update.php

Due to T22471, update.php disables the localisation cache in
afterFinalSetup(). The first web request hitting MediaWiki thus all
trigger a cache rebuild. Under SQLite at least, that causes a spam of
DBPerformance messages such as:

Expectation (writes <= 0) by MediaWiki::main not met (actual: 1):
query-m: DELETE FROM l10n_cache WHERE lc_lang = 'X' [TRX#1254e1]

Expectation (writes <= 0) by MediaWiki::main not met (actual: 2):
query-m: INSERT INTO l10n_cache (lc_lang,lc_key,lc_value) VALUES ('X')
[TRX#1254e1]

Expectation (writes <= 0) by MediaWiki::main not met (actual: 3):
query-m: INSERT INTO l10n_cache (lc_lang,lc_key,lc_value) VALUES ('X')
[TRX#1254e1]

Make Quibble run rebuildLocalisationCache just after update.php.

Bug: T22471
Bug: T196347
Change-Id: I1ae8c28b79d291afc2efd953e55d49a89cc2bbca

Details

Committed
hasharJul 27 2018, 10:51 AM
Parents
rQUIBBLEfba3c9d55ae7: Run any command inside Quibble test env
Branches
Unknown
Tags
Unknown
ChangeId
I1ae8c28b79d291afc2efd953e55d49a89cc2bbca