MessageCache: do not store the EXCESSIVE array as it is only needed for HASH
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 3 Oct 2018 19:38:46 +0000 (12:38 -0700)
committerKrinkle <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

index bf2ed2e..a08b897 100644 (file)
@@ -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;
        }