91 if ( $this->cacheKey ===
null ) {
93 $this->cacheKey = $this->cache->makeKey(
"sites/$type" );
107 if ( $this->sites ===
null ) {
108 $this->sites = $this->cache->getWithSetCallback(
111 [ $this->siteStore,
'getSites' ]
194 return $this->siteStore->clear();
Class representing a cache/ephemeral data store.
getCacheKey()
Constructs a cache key to use for caching the list of sites.
clear()
Clears the list of sites stored.
__construct(SiteStore $siteStore, BagOStuff $cache, $cacheKey=null, $cacheTimeout=3600)
reset()
Purges the internal and external cache of the site list, forcing the list.
static getSerialVersionId()
Returns the version ID that identifies the serialization structure used by getSerializationData() and...
hasSite( $globalSiteId)
Returns if the list contains the site with the provided global site identifier.
getSite( $globalSiteId)
Returns the Site with the provided global site identifier.