From: Aaron Schulz Date: Wed, 3 Oct 2018 19:38:46 +0000 (-0700) Subject: MessageCache: do not store the EXCESSIVE array as it is only needed for HASH X-Git-Tag: 1.34.0-rc.0~3903^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%28%5B%5E/%40lib_url%40?a=commitdiff_plain;h=548c92a33297090d420e8999107103c998f67376;p=lhc%2Fweb%2Fwiklou.git MessageCache: do not store the EXCESSIVE array as it is only needed for HASH This saves space as the number of entries becomes larger. Bug: T193271 Change-Id: I32d7512d7f05ae7c9a69b88cd19df64d7a21b4a1 --- diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index bf2ed2e430..a08b897514 100644 --- 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; }