Last modified: 2014-02-12 23:32:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49501, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47501 - Restrict rebuildLocalisationCache to a selection of languages to keep database size low
Restrict rebuildLocalisationCache to a selection of languages to keep databas...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.20.x
All Linux
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-22 10:56 UTC by Karin Haenelt
Modified: 2014-02-12 23:32 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Karin Haenelt 2013-04-22 10:56:58 UTC
If I run the script on the wiki, the database is blown up considerably - due to the addition of messages in about 360 languages which neither our wiki nor any extension to the wiki uses (blown up by about 80.000 records).

It should be possible to restrict the script to a selection of languages (default: English + language of the wiki)
~~~~
Comment 1 Sam Reed (reedy) 2013-04-22 17:02:33 UTC
Is database storage a constraint for you?
Comment 2 Karin Haenelt 2013-04-23 08:09:53 UTC
Yes, because we are running a wiki farm, and if we blow up all the wikis on the farm we are running out of disk space
Comment 3 Karin Haenelt 2013-04-23 08:25:44 UTC
currently we are using a very simple "bug fix":
$codes = array_keys( Language::getLanguageNames( true ) ); //1.18.1, and similar in 1.20.2
$codes = array("en", "de", "de-formal"); // our added line

alternative coding:
$wgOurLanguageCodes = array (...);
if ($wgOurLanguageCodes) {$codes = $wgOurLanguageCodes;}
else $codes = array_keys( Language::getLanguageNames( true ) );

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links