Manual:objectcache table
From Linux Web Expert
↑ Manual:Contents | <translate> MediaWiki database layout</translate> | <translate> <tvar name=1>objectcache</tvar> table</translate> |
MediaWiki version: | <translate> ≥</translate> 1.3 |
The objectcache table is the default backend for the Main Stash service, and is also used by a small number of high-impact cache operations as fallback when no other cache backend is configured (e.g. Memcached ). Its content can be safely deleted and excluded from backups as it will be regenerated when needed.
See Manual:Object cache for how this cache is used and how it can be configured.
Fields
keyname
Unique identifier of the cached object. e.g. <instance>:user:id:<userid>
value
Cached object.
exptime
Date the cache entry should be expired (in seconds), and therefore removed.
modtoken
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.37
<translate> MediaWiki version:</translate> |
?
flags
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.37
<translate> MediaWiki version:</translate> |
?
Schema summary
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.37
Gerrit change 666780<translate> MediaWiki version:</translate> |
DESCRIBE objectcache;
+----------+------------------+------+-----+-------------------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+------------------+------+-----+-------------------+-------+ | keyname | varbinary(255) | NO | PRI | | | | value | mediumblob | YES | | NULL | | | exptime | binary(14) | NO | MUL | NULL | | | modtoken | varbinary(17) | NO | | 00000000000000000 | | | flags | int(10) unsigned | YES | | NULL | | +----------+------------------+------+-----+-------------------+-------+<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.36</tvar> is unsupported version</translate>">
1.36
Gerrit change 636049<translate> MediaWiki version:</translate> |
DESCRIBE objectcache;
+---------+----------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+----------------+------+-----+---------+-------+ | keyname | varbinary(255) | NO | PRI | | | | value | mediumblob | YES | | NULL | | | exptime | binary(14) | NO | MUL | NULL | | +---------+----------------+------+-----+---------+-------+<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.10 – 1.35
<translate> MediaWiki versions:</translate> |
DESCRIBE objectcache;
+---------+----------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+----------------+------+-----+---------+-------+ | keyname | varbinary(255) | NO | PRI | | | | value | mediumblob | YES | | NULL | | | exptime | datetime | YES | MUL | NULL | | +---------+----------------+------+-----+---------+-------+<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.9</tvar> is unsupported version</translate>">
1.3 – 1.9
<translate> MediaWiki versions:</translate> |
DESCRIBE objectcache;
+---------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+------------------+------+-----+---------+-------+ | keyname | char(255) binary | NO | PRI | NULL | | | value | mediumblob | YES | | NULL | | | exptime | datetime | YES | MUL | NULL | | +---------+------------------+------+-----+---------+-------+