MediaWiki REL1_39
|
Public Member Functions | |
__construct (SiteStore $siteStore, BagOStuff $cache, $cacheKey=null, $cacheTimeout=3600) | |
clear () | |
Clears the list of sites stored. | |
getSite ( $globalId) | |
getSites () | |
reset () | |
Purges the internal and external cache of the site list, forcing the list. | |
saveSite (Site $site) | |
saveSites (array $sites) | |
Definition at line 31 of file CachingSiteStore.php.
CachingSiteStore::__construct | ( | SiteStore | $siteStore, |
BagOStuff | $cache, | ||
$cacheKey = null, | |||
$cacheTimeout = 3600 ) |
Definition at line 64 of file CachingSiteStore.php.
References $cache.
CachingSiteStore::clear | ( | ) |
Clears the list of sites stored.
Only use this for testing, as APC is typically used and is per-server.
Implements SiteStore.
Definition at line 191 of file CachingSiteStore.php.
References reset().
CachingSiteStore::getSite | ( | $globalId | ) |
string | $globalId |
Implements SiteLookup.
Definition at line 127 of file CachingSiteStore.php.
References SiteList\getSite(), getSites(), and SiteList\hasSite().
CachingSiteStore::getSites | ( | ) |
Implements SiteLookup.
Definition at line 106 of file CachingSiteStore.php.
Referenced by getSite().
CachingSiteStore::reset | ( | ) |
Purges the internal and external cache of the site list, forcing the list.
of sites to be reloaded.
Only use this for testing, as APC is typically used and is per-server
Definition at line 176 of file CachingSiteStore.php.
Referenced by clear(), and saveSites().
CachingSiteStore::saveSite | ( | Site | $site | ) |
Site | $site |
Implements SiteStore.
Definition at line 142 of file CachingSiteStore.php.
References saveSites().
CachingSiteStore::saveSites | ( | array | $sites | ) |
Site[] | $sites |
Implements SiteStore.
Definition at line 155 of file CachingSiteStore.php.
References $success, and reset().
Referenced by saveSite().