HomePhabricator

rebuildLocalisationCache after update.php
f700a290e3cfUnpublished

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

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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 19 2018, 2:46 PM
Parents
rQUIBBLE4ad9cee901cf: Chrome: do not rate limit history.pushState()
Branches
Unknown
Tags
Unknown
ChangeId
I1ae8c28b79d291afc2efd953e55d49a89cc2bbca