81 $ilIniFile->readVariable(
82 self::INI_HEADER_CACHE,
83 self::INI_FIELD_ACTIVATE_GLOBAL_CACHE
87 (
int)$ilIniFile->readVariable(
88 self::INI_HEADER_CACHE,
89 self::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE
93 (
int) $ilIniFile->readVariable(
94 self::INI_HEADER_CACHE,
95 self::INI_FIELD_LOG_LEVEL
101 $cache_components = $ilIniFile->readGroup(
102 self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS
104 if (is_array($cache_components)) {
105 foreach ($cache_components as $comp => $v) {
116 $ilIniFile->setVariable(
117 self::INI_HEADER_CACHE,
118 self::INI_FIELD_ACTIVATE_GLOBAL_CACHE,
121 $ilIniFile->setVariable(
122 self::INI_HEADER_CACHE,
123 self::INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE,
126 $ilIniFile->setVariable(
127 self::INI_HEADER_CACHE,
128 self::INI_FIELD_LOG_LEVEL,
132 $ilIniFile->removeGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
133 $ilIniFile->addGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
135 $ilIniFile->setVariable(
136 self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS,
141 return $ilIniFile->
write();
156 $this->activated_components[] = $component;
157 $this->activated_components = array_unique($this->activated_components);
162 $this->activated_components = [];
170 return in_array($component, $this->activated_components);
175 return count($this->activated_components) === count(
212 if (!$ilIniFile->readGroup(self::INI_HEADER_CACHE)) {
213 $ilIniFile->addGroup(self::INI_HEADER_CACHE);
215 if (!$ilIniFile->readGroup(
216 self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS
218 $ilIniFile->addGroup(self::INI_HEADER_CACHE_ACTIVATED_COMPONENTS);
238 $activated =
'Activated Components: ' . implode(
254 $r =
new ReflectionClass($this);
255 foreach ($r->getConstants() as $k => $v) {
256 if (strpos($k,
'LOG_LEVEL') === 0 && $v == $level) {
266 $this->memcached_nodes[] = $node_id;
Class ilGlobalCacheSettings.
lookupLogLevelName(int $level)
setActivatedComponents(array $activated_components)
addActivatedComponent($component)
addMemcachedNode(ilMemcacheServer $node_id)
const INI_FIELD_ACTIVATE_GLOBAL_CACHE
writeToIniFile(ilIniFile $ilIniFile)
const INI_HEADER_CACHE_ACTIVATED_COMPONENTS
const INI_FIELD_GLOBAL_CACHE_SERVICE_TYPE
const INI_FIELD_LOG_LEVEL
setLogLevel(int $log_level)
checkIniHeader(ilIniFile $ilIniFile)
resetActivatedComponents()
areAllComponentActivated()
isComponentActivated($component)
readFromIniFile(ilIniFile $ilIniFile)
array $activated_components
static lookupServiceClassName(int $service_type)
static getAvailableComponents()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
write()
save ini-file-data to filesystem
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A configuration for the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...