BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
CachingSiteStore Class Reference
Inheritance diagram for CachingSiteStore:
Collaboration diagram for CachingSiteStore:

Public Member Functions

 __construct (SiteStore $siteStore, BagOStuff $cache, $cacheKey=null, $cacheTimeout=3600)
 
 getSites ()
 
 getSite ($globalId)
 
 saveSite (Site $site)
 
 saveSites (array $sites)
 
 reset ()
 
 clear ()
 

Constructor & Destructor Documentation

CachingSiteStore::__construct ( SiteStore  $siteStore,
BagOStuff  $cache,
  $cacheKey = null,
  $cacheTimeout = 3600 
)
Parameters
SiteStore$siteStore
BagOStuff$cache
string | null$cacheKey
int$cacheTimeout

Member Function Documentation

CachingSiteStore::clear ( )

Clears the list of sites stored.

Only use this for testing, as APC is typically used and is per-server.

See Also
SiteStore::clear()
Returns
bool Success

Implements SiteStore.

CachingSiteStore::getSite (   $globalId)
See Also
SiteStore::getSite
Since
1.25
Parameters
string$globalId
Returns
Site|null

Implements SiteLookup.

CachingSiteStore::getSites ( )
See Also
SiteStore::getSites
Since
1.25
Returns
SiteList

Implements SiteLookup.

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

Since
1.25
CachingSiteStore::saveSite ( Site  $site)
See Also
SiteStore::saveSite
Since
1.25
Parameters
Site$site
Returns
bool Success indicator

Implements SiteStore.

CachingSiteStore::saveSites ( array  $sites)
See Also
SiteStore::saveSites
Since
1.25
Parameters
Site[]$sites
Returns
bool Success indicator

Implements SiteStore.


The documentation for this class was generated from the following file: