dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12c3f71
)
Avoid MapCacheLRU error when MessageCache fails to load
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 Aug 2018 06:03:27 +0000
(23:03 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 Aug 2018 06:03:27 +0000
(23:03 -0700)
Bug: T201893
Change-Id: I6093113a3ffa8092dea3351a6ed6c815c7ff7162
includes/cache/MessageCache.php
patch
|
blob
|
history
diff --git
a/includes/cache/MessageCache.php
b/includes/cache/MessageCache.php
index
5c14818
..
afd24f4
100644
(file)
--- a/
includes/cache/MessageCache.php
+++ b/
includes/cache/MessageCache.php
@@
-368,7
+368,7
@@
class MessageCache {
if ( !$success ) {
$where[] = 'loading FAILED - cache is disabled';
$this->mDisable = true;
- $this->cache->set( $code,
null
);
+ $this->cache->set( $code,
[]
);
wfDebugLog( 'MessageCacheError', __METHOD__ . ": Failed to load $code\n" );
# This used to throw an exception, but that led to nasty side effects like
# the whole wiki being instantly down if the memcached server died