Page MenuHomePhabricator

MessageCache failed with/without $wgMessageCacheType+$wgCacheDirectory
Open, Needs TriagePublic

Description

Mediawiki 1.31.1
phpVersion 7.0.33-1~dotdeb+8.1
$wgMessageCacheType = CACHE_ACCEL; (uAPC)
$wgCacheDirectory = '/tmp/mw-cache-wikiname';
database load via $wgLBFactoryConf.

The debug error message:

[MessageCache] MessageCache::load: Loading zh-hans... local cache has the wrong hash, global cache is presumed expired, loading from database
[caches] parser: RedisBagOStuff
Article::view using parser cache: yes
[MessageCache] MessageCache::load: Loading zh... local cache has the wrong hash, global cache is presumed expired, loading from database
[MessageCache] MessageCache::load: Loading en... local cache has the wrong hash, global cache is presumed expired, loading from database
[MessageCache] MessageCache::load: Loading zh-hant... local cache has the wrong hash, global cache is presumed expired, loading from database
[MessageCache] MessageCache::load: Loading zh-cn... local cache has the wrong hash, global cache is presumed expired, loading from database
[MessageCache] MessageCache::load: Loading zh-tw... local cache has the wrong hash, global cache is presumed expired, loading from database

For some reason, the message cache never function and keep loading from database.
We do find many MessageCache in uAPC, and cbd files like l10n_cache-en.cdb in /mw-cache-wikiname (with proper owner www, and 755 folder rights, 644 file rights).
Changing $wgMessageCacheType from CACHE_ACCEL to 'redis' does not solve this problem.

Is this a Mediawiki bug, or we are not caching message in the right way?

Thank you for your help in advance!

Event Timeline

Zoglun created this task.Feb 10 2019, 2:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 10 2019, 2:53 PM