Elgg
Version 2.3
|
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... | |
Boots Elgg and manages a cache of data needed during boot.
private
Definition at line 18 of file BootService.php.
Elgg\BootService::boot | ( | ) |
Elgg\BootService::invalidateCache | ( | $site_guid = 0 | ) |
Invalidate the cache item.
int | $site_guid | Site GUID or empty for current site |
Definition at line 178 of file BootService.php.
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.