MediaWiki REL1_37
BacklinkCacheFactory.php
Go to the documentation of this file.
1<?php
25
29
36
38 private $wanCache;
39
44 $this->wanCache = $wanCache;
45 }
46
57 public function getBacklinkCache( PageReference $page ): BacklinkCache {
58 if ( !$this->latestBacklinkCache || !$this->latestBacklinkCache->getPage()->isSamePageAs( $page ) ) {
59 $this->latestBacklinkCache = new BacklinkCache( $this->wanCache, $page );
60 }
62 }
63}
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Definition Setup.php:88
Class for fetching backlink lists, approximate backlink counts and partitions.
getBacklinkCache(PageReference $page)
Returns a BacklinkCache for $page.
Multi-datacenter aware caching interface.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.