Jump to content

手册:l10n_cache表

From mediawiki.org
This page is a translated version of the page Manual:L10n cache table and the translation is 80% complete.
Outdated translations are marked like this.
手册:索引 MediaWiki数据库布局 l10n_cache表
MediaWiki版本:
1.16

l10n_cache表。 其內容可以刪除並將其從備份中排除,因為它將會在需要時重新生成。 LocalisationCache.php LCStoreDB類別的公開函數get()透過lc_langlc_key尋找lc_value

欄位

lc_lang

语言代码

lc_key

快取鍵。

lc_value

值,以序列化字串保存。

架构摘要

MediaWiki版本:
1.35
Gerrit change 597664

DESCRIBE l10n_cache;

+----------+----------------+------+-----+---------+-------+
| Field    | Type           | Null | Key | Default | Extra |
+----------+----------------+------+-----+---------+-------+
| lc_lang  | varbinary(35)  | NO   | PRI | NULL    |       |
| lc_key   | varbinary(255) | NO   | PRI | NULL    |       |
| lc_value | mediumblob     | NO   |     | NULL    |       |
+----------+----------------+------+-----+---------+-------+
MediaWiki版本:
1.30 – 1.34
Gerrit change 318553

DESCRIBE l10n_cache;

+----------+----------------+------+-----+---------+-------+
| Field    | Type           | Null | Key | Default | Extra |
+----------+----------------+------+-----+---------+-------+
| lc_lang  | varbinary(32)  | NO   | PRI | NULL    |       |
| lc_key   | varbinary(255) | NO   | PRI | NULL    |       |
| lc_value | mediumblob     | NO   |     | NULL    |       |
+----------+----------------+------+-----+---------+-------+
MediaWiki版本:
1.16 – 1.29

DESCRIBE l10n_cache;

+----------+----------------+------+-----+---------+-------+
| Field    | Type           | Null | Key | Default | Extra |
+----------+----------------+------+-----+---------+-------+
| lc_lang  | varbinary(32)  | NO   | MUL | NULL    |       |
| lc_key   | varbinary(255) | NO   |     | NULL    |       |
| lc_value | mediumblob     | NO   |     | NULL    |       |
+----------+----------------+------+-----+---------+-------+

Indexes

MediaWiki版本:
1.30

SHOW INDEX IN l10n_cache;

+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table      | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| l10n_cache |          0 | PRIMARY  |            1 | lc_lang     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| l10n_cache |          0 | PRIMARY  |            2 | lc_key      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+