README 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. This directory contains data files in the format of PHP's serialize() function.
  2. The source data are typically array literals in PHP source files. We have
  3. observed that unserialize(file_get_contents(...)) is faster than executing such
  4. a file from an oparray cache like APC, and very much faster than loading it by
  5. parsing the source file without such a cache. It should also be faster than
  6. loading the data across the network with memcached, as long as you are careful
  7. to put your MediaWiki root directory on a local hard drive rather than on NFS.
  8. This is a good idea for performance in any case.
  9. To generate all data files:
  10. cd /path/to/wiki/serialized
  11. make
  12. This requires GNU Make. At present, the only serialized data file which is
  13. strictly required is Utf8Case.ser. This contains UTF-8 case conversion tables,
  14. which have essentially never changed since MediaWiki was invented.
  15. The Messages*.ser files are localisation files, containing user interface text
  16. and various other data related to language-specific behaviour. Because they
  17. are merged with the fallback language (usually English) before caching, they
  18. are all quite large, about 140 KB each at the time of writing. If you generate
  19. all of them, they take up about 20 MB. Hence, I don't expect we will include
  20. all of them in the release tarballs. However, to obtain optimum performance,
  21. YOU SHOULD GENERATE ALL THE LOCALISATION FILES THAT YOU WILL BE USING ON YOUR
  22. WIKIS.
  23. You can generate individual files by typing a command such as:
  24. cd /path/to/wiki/serialized
  25. make MessagesAr.ser
  26. If you change a Messages*.php source file, you must recompile any serialized
  27. data files which are present. If you change MessagesEn.php, this will
  28. invalidate *all* Messages*.ser files.
  29. I think we should distribute a few Messages*.ser files in the release tarballs,
  30. specifically the ones created by "make dist".