Elgg  Version 2.3
Public Member Functions | Public Attributes | List of all members
Elgg\BootService Class Reference

Boots Elgg and manages a cache of data needed during boot. More...

Public Member Functions

 boot ()
 Boots the engine. More...
 
 invalidateCache ($site_guid=0)
 Invalidate the cache item. More...
 

Public Attributes

const DEFAULT_BOOT_CACHE_TTL = 0
 Under load, a short TTL gives nearly all of the benefits of a longer TTL, but it also ensures that, should cache invalidation fail for some reason, it'll be rebuilt quickly anyway. More...
 

Detailed Description

Boots Elgg and manages a cache of data needed during boot.

private

Since
2.1

Definition at line 18 of file BootService.php.

Member Function Documentation

Elgg\BootService::boot ( )

Boots the engine.

Returns
void

Definition at line 34 of file BootService.php.

Elgg\BootService::invalidateCache (   $site_guid = 0)

Invalidate the cache item.

Parameters
int$site_guidSite GUID or empty for current site
Returns
void

Definition at line 178 of file BootService.php.

Member Data Documentation

const Elgg\BootService::DEFAULT_BOOT_CACHE_TTL = 0

Under load, a short TTL gives nearly all of the benefits of a longer TTL, but it also ensures that, should cache invalidation fail for some reason, it'll be rebuilt quickly anyway.

In 2.x we do not cache by default. This will likely change to 10 in 3.0.

Definition at line 27 of file BootService.php.


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