Skip to content

Commit

Permalink
Update PortableInfoboxDataService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox committed Dec 18, 2019
1 parent 0311870 commit a01847f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/services/PortableInfoboxDataService.php
@@ -1,5 +1,6 @@
<?php

use MediaWiki\MediaWikiServices;
use PortableInfobox\Helpers\PagePropsProxy;
use PortableInfobox\Helpers\PortableInfoboxParsingHelper;
use PortableInfobox\Parser\Nodes\NodeInfobox;
Expand All @@ -26,7 +27,7 @@ protected function __construct( $title ) {
$this->title = $title !== null ? $title : new Title();
$this->parsingHelper = new PortableInfoboxParsingHelper();
$this->propsProxy = new PagePropsProxy();
$this->memcached = ObjectCache::getMainWANInstance();
$this->memcached = MediaWikiServices::getInstance()->getMainWANObjectCache();
$this->cachekey = $this->memcached->makeKey(
__CLASS__,
$this->title->getArticleID(),
Expand Down

0 comments on commit a01847f

Please sign in to comment.