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:
1b804e0
)
MessageCache: do not store the EXCESSIVE array as it is only needed for HASH
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 3 Oct 2018 19:38:46 +0000
(12:38 -0700)
committer
Krinkle
<krinklemail@gmail.com>
Thu, 4 Oct 2018 02:22:05 +0000
(
02:22
+0000)
This saves space as the number of entries becomes larger.
Bug: T193271
Change-Id: I32d7512d7f05ae7c9a69b88cd19df64d7a21b4a1
includes/cache/MessageCache.php
patch
|
blob
|
history
diff --git
a/includes/cache/MessageCache.php
b/includes/cache/MessageCache.php
index
bf2ed2e
..
a08b897
100644
(file)
--- a/
includes/cache/MessageCache.php
+++ b/
includes/cache/MessageCache.php
@@
-551,6
+551,7
@@
class MessageCache {
# stored and fetched from memcache.
$cache['HASH'] = md5( serialize( $cache ) );
$cache['EXPIRY'] = wfTimestamp( TS_MW, time() + $this->mExpiry );
+ unset( $cache['EXCESSIVE'] ); // only needed for hash
return $cache;
}