📜 ⬆️ ⬇️

How to reduce MediaWiki engine four times (even almost five) in terms of file size

MediaWiki engine version 1.15.1 contains about 38 megabytes of files.

If you look closely, it’s easy to see that the contents of the languages ​​/ messages directory (in which the MediaWiki interface translations into hundreds of different languages ​​of the world, alive and dead) are 30 megabytes, and all the rest, respectively, is about 8 megabytes.

The development of hosting services in Russia is not yet at a particularly high level, so the cost of hosting thirty eight megabytes of code may differ significantly from the cost of hosting eight or a few megabytes, as you yourself can be sure when you start to find a site for an information site. Therefore, it may be of some interest to ask how to saw off all languages ​​from a wiki, except for the only necessary.
')
It turns out that in the description of the $ wgLanguageCode directive there is a way to cut down the possibility of the user choosing a language. After that, it becomes possible to go to the languages ​​/ messages directory to kill all unnecessary languages ​​in it - and thus it is impossible to achieve the desired.

Small wikis can follow this recipe to stay really small.

The comments also say that English must also be saved without fail, even if another language is designated as the main language.

Source: https://habr.com/ru/post/70139/


All Articles