Merge "SeenTime: Wrap cache with CachedBagOStuff"

This commit is contained in:
jenkins-bot 2016-09-06 20:43:38 +00:00 committed by Gerrit Code Review
commit fc63f11b64

View file

@ -27,7 +27,12 @@ class EchoSeenTime {
*/
private function __construct( User $user ) {
$this->user = $user;
$this->cache = ObjectCache::getInstance( 'db-replicated' );
// Use db-replicated for persistent storage, and
// wrap it with CachedBagOStuff for an in-process
// cache. (T144534)
$this->cache = new CachedBagOStuff(
ObjectCache::getInstance( 'db-replicated' )
);
}
/**