Class ilGlobalCache.
More...
◆ __construct()
ilGlobalCache::__construct |
( |
|
$service_type | ) |
|
|
protected |
◆ checkSettings()
ilGlobalCache::checkSettings |
( |
| ) |
|
|
protected |
◆ delete()
ilGlobalCache::delete |
( |
|
$key | ) |
|
◆ exists()
ilGlobalCache::exists |
( |
|
$key | ) |
|
- Parameters
-
- Exceptions
-
- Returns
- bool
Definition at line 339 of file class.ilGlobalCache.php.
340 if (!$this->global_cache->isActive()) {
344 return $this->global_cache->exists($key);
◆ flush()
ilGlobalCache::flush |
( |
|
$complete = false | ) |
|
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 413 of file class.ilGlobalCache.php.
414 if ($this->global_cache->isActive()) {
416 return $this->global_cache->flush();
418 $this->global_cache->setInvalid();
◆ generateServiceId()
static ilGlobalCache::generateServiceId |
( |
| ) |
|
|
staticprotected |
◆ get()
ilGlobalCache::get |
( |
|
$key | ) |
|
◆ getActive()
ilGlobalCache::getActive |
( |
| ) |
|
◆ getActiveComponents()
static ilGlobalCache::getActiveComponents |
( |
| ) |
|
|
static |
◆ getAllInstallableTypes()
static ilGlobalCache::getAllInstallableTypes |
( |
| ) |
|
|
static |
- Returns
- ilGlobalCache[]
Definition at line 211 of file class.ilGlobalCache.php.
References $types, and array.
213 foreach (self::getAllTypes() as $type) {
214 if ($type->isCacheServiceInstallable()) {
Create styles array
The data for the language used.
◆ getAllTypes()
static ilGlobalCache::getAllTypes |
( |
|
$only_available = true | ) |
|
|
static |
- Parameters
-
- Returns
- array
Definition at line 227 of file class.ilGlobalCache.php.
References $types, and array.
Referenced by ilSetupGUI\displayDatabase().
229 foreach (self::$types as $type) {
230 if ($only_available && !in_array($type, self::$available_types)) {
233 $obj =
new self($type);
234 $obj->initCachingService();
Create styles array
The data for the language used.
◆ getAvailableComponents()
static ilGlobalCache::getAvailableComponents |
( |
| ) |
|
|
static |
◆ getComponent()
ilGlobalCache::getComponent |
( |
| ) |
|
◆ getInfo()
ilGlobalCache::getInfo |
( |
| ) |
|
◆ getInstallationFailureReason()
ilGlobalCache::getInstallationFailureReason |
( |
| ) |
|
- Returns
- string
Definition at line 328 of file class.ilGlobalCache.php.
329 return $this->global_cache->getInstallationFailureReason();
◆ getInstance()
static ilGlobalCache::getInstance |
( |
|
$component | ) |
|
|
static |
- Parameters
-
- Returns
- ilGlobalCache
Definition at line 116 of file class.ilGlobalCache.php.
References $component, and $service_type.
Referenced by ilCachedCtrl\__construct(), ilCachedComponentData\__construct(), ilCachedComponentData\__destruct(), ilCachedCtrl\flush(), ilCachedComponentData\flush(), ilGlobalCacheQueryWrapper\get(), HTML_Template_IT\getFile(), ilCachedCtrl\getInstance(), ilCachedComponentData\getInstance(), HTML_Template_IT\init(), ilAppEventHandler\initListeners(), ilCachedCtrl\isActive(), and ilObjectDefinition\readDefinitionData().
120 $ilGlobalCache->setComponent($component);
121 $ilGlobalCache->initCachingService();
123 self::$instances[
$component] = $ilGlobalCache;
◆ getServiceType()
ilGlobalCache::getServiceType |
( |
| ) |
|
◆ getSettings()
static ilGlobalCache::getSettings |
( |
| ) |
|
|
static |
◆ isActive()
ilGlobalCache::isActive |
( |
| ) |
|
◆ isCacheServiceInstallable()
ilGlobalCache::isCacheServiceInstallable |
( |
| ) |
|
◆ isInstallable()
ilGlobalCache::isInstallable |
( |
| ) |
|
◆ isValid()
ilGlobalCache::isValid |
( |
|
$key | ) |
|
◆ log()
static ilGlobalCache::log |
( |
|
$message, |
|
|
|
$log_level |
|
) |
| |
|
static |
◆ lookupServiceClassName()
static ilGlobalCache::lookupServiceClassName |
( |
|
$service_type | ) |
|
|
static |
◆ set()
ilGlobalCache::set |
( |
|
$key, |
|
|
|
$value, |
|
|
|
$ttl = null |
|
) |
| |
◆ setActive()
ilGlobalCache::setActive |
( |
|
$active | ) |
|
◆ setActiveComponents()
static ilGlobalCache::setActiveComponents |
( |
|
$active_components | ) |
|
|
static |
◆ setAvailableComponents()
static ilGlobalCache::setAvailableComponents |
( |
|
$available_components | ) |
|
|
static |
◆ setComponent()
ilGlobalCache::setComponent |
( |
|
$component | ) |
|
◆ setServiceType()
ilGlobalCache::setServiceType |
( |
|
$service_type | ) |
|
◆ setSettings()
static ilGlobalCache::setSettings |
( |
|
$settings | ) |
|
|
static |
◆ setup()
◆ $active
ilGlobalCache::$active = true |
|
protected |
◆ $active_cache
ilGlobalCache::$active_cache = array() |
|
staticprotected |
◆ $active_components
ilGlobalCache::$active_components = array() |
|
staticprotected |
◆ $available_components
ilGlobalCache::$available_components |
|
staticprotected |
Initial value: self::COMP_CLNG,
self::COMP_OBJ_DEF,
self::COMP_ILCTRL,
self::COMP_COMPONENT,
self::COMP_TEMPLATE,
self::COMP_TPL_BLOCKS,
self::COMP_TPL_VARIABLES,
self::COMP_EVENTS,
)
Definition at line 58 of file class.ilGlobalCache.php.
Referenced by setAvailableComponents().
◆ $available_types
ilGlobalCache::$available_types |
|
staticprotected |
Initial value: self::TYPE_MEMCACHED,
self::TYPE_XCACHE,
self::TYPE_APC,
self::TYPE_STATIC,
)
Definition at line 45 of file class.ilGlobalCache.php.
◆ $component
ilGlobalCache::$component |
|
protected |
◆ $global_cache
ilGlobalCache::$global_cache |
|
protected |
◆ $instances
ilGlobalCache::$instances |
|
staticprotected |
◆ $service_type
◆ $settings
◆ $type_per_component
ilGlobalCache::$type_per_component = array() |
|
staticprotected |
◆ $types
◆ $unique_service_id
ilGlobalCache::$unique_service_id = null |
|
staticprotected |
◆ ACTIVE
const ilGlobalCache::ACTIVE = true |
◆ COMP_CLNG
const ilGlobalCache::COMP_CLNG = 'clng' |
◆ COMP_COMPONENT
const ilGlobalCache::COMP_COMPONENT = 'comp' |
◆ COMP_EVENTS
const ilGlobalCache::COMP_EVENTS = 'events' |
◆ COMP_ILCTRL
const ilGlobalCache::COMP_ILCTRL = 'ilctrl' |
◆ COMP_OBJ_DEF
const ilGlobalCache::COMP_OBJ_DEF = 'obj_def' |
◆ COMP_PLUGINS
const ilGlobalCache::COMP_PLUGINS = 'plugins' |
◆ COMP_RBAC_UA
const ilGlobalCache::COMP_RBAC_UA = 'rbac_ua' |
◆ COMP_TEMPLATE
const ilGlobalCache::COMP_TEMPLATE = 'tpl' |
◆ COMP_TPL_BLOCKS
const ilGlobalCache::COMP_TPL_BLOCKS = 'tpl_blocks' |
◆ COMP_TPL_VARIABLES
const ilGlobalCache::COMP_TPL_VARIABLES = 'tpl_variables' |
◆ MSG
const ilGlobalCache::MSG = 'Global Cache not active, can not access cache' |
◆ TYPE_APC
const ilGlobalCache::TYPE_APC = 3 |
◆ TYPE_FALLBACK
const ilGlobalCache::TYPE_FALLBACK = self::TYPE_STATIC |
◆ TYPE_MEMCACHED
const ilGlobalCache::TYPE_MEMCACHED = 2 |
◆ TYPE_STATIC
const ilGlobalCache::TYPE_STATIC = 0 |
◆ TYPE_XCACHE
const ilGlobalCache::TYPE_XCACHE = 1 |
The documentation for this class was generated from the following file: