objectcache: Ensure an integer put into memcached comes out an integer
authorErik Bernhardson <ebernhardson@wikimedia.org>
Thu, 5 Mar 2015 00:00:10 +0000 (16:00 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 1 Jul 2015 03:51:55 +0000 (03:51 +0000)
commit508d8ee79b7834ce0451cc0c11e0471e6d9711ca
treedd12b1f28ba12c493b12e8edf303c464972f5643
parentc2a4cb59772412b6fe71b6ed9a54bcd4752764d2
objectcache: Ensure an integer put into memcached comes out an integer

Some parts of resourceloader put an integer into the BagOStuff
and rejects any value it pulls back out that is not an integer.
This patch updates the memcached client behind the BagOStuff to
flag integer values and convert them back to integer when recieved.
The end result is shaving several seconds off the time it takes to
request a CSS or JS file in certain configurations.

Bug: 60563
Change-Id: Ie4dc8cf2c2cd232a2c167b4075ff4254b656bcbc
includes/objectcache/MemcachedClient.php