Page MenuHomePhabricator

Make memcached BagOStuff classes use 'gets' only if a CAS token is needed
Closed, ResolvedPublic

Description

This saves a few bytes on the response and, more importantly, makes mcrouter warmup-style config like https://gerrit.wikimedia.org/r/c/operations/puppet/+/594760 more practical when using BagOStuff. Most get() operations, and all getMulti() ones, do not need CAS tokens since they are not being used within BagOStuff::merge().

Event Timeline

Change 609269 had a related patch set uploaded (by Aaron Schulz; owner: Aaron Schulz):
[mediawiki/core@master] objectcache: only use memcached "gets" when tokens are needed

https://gerrit.wikimedia.org/r/609269

Change 609269 merged by jenkins-bot:
[mediawiki/core@master] objectcache: only use memcached "gets" when tokens are needed

https://gerrit.wikimedia.org/r/609269