diff options
Diffstat (limited to 'includes/objectcache/ObjectCache.php')
-rw-r--r-- | includes/objectcache/ObjectCache.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index 6226f91b1efd..32ece3183539 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -149,6 +149,10 @@ class ObjectCache { 'reportDupes' => true, ]; + if ( !isset( $params['stats'] ) ) { + $params['stats'] = MediaWikiServices::getInstance()->getStatsdDataFactory(); + } + if ( isset( $params['factory'] ) ) { return call_user_func( $params['factory'], $params ); } |