mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "SeenTime: Wrap cache with CachedBagOStuff"
This commit is contained in:
commit
fc63f11b64
|
@ -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' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue