91 if ( $this->cacheKey ===
null ) {
93 $this->cacheKey = $this->cache->makeKey(
"sites/$type" );
107 if ( $this->sites ===
null ) {
108 $this->sites = $this->cache->get( $this->
getCacheKey() );
110 if ( !is_object( $this->sites ) ) {
111 $this->sites = $this->siteStore->getSites();
113 $this->cache->set( $this->
getCacheKey(), $this->sites, $this->cacheTimeout );
196 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.