2 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
48 public function set(
$key, $serialized_value, $ttl = null)
50 return xcache_set($this->
returnKey(
$key), $serialized_value, $ttl);
70 public function delete(
$key)
81 $_SERVER[
"PHP_AUTH_USER"] =
"xcache";
84 xcache_clear_cache(XC_TYPE_VAR, 0);
117 $function_exists = function_exists(
'xcache_set');
118 $var_size = ini_get(
'xcache.var_size') !=
'0M';
119 $var_count = ini_get(
'xcache.var_count') > 0;
120 $api = (php_sapi_name() !==
'cli');
122 $active = $function_exists and $var_size and $var_count and $api;
133 return function_exists(
'xcache_set');
143 return xcache_info(XC_TYPE_VAR, 0);
153 return ini_get(
'xcache.var_size');
162 return self::MIN_MEMORY;
173 if ($this->valid_key_hash != md5(
serialize($this->valid_keys))) {
174 $this->
set(
'valid_keys', $this->
serialize($this->valid_keys));
188 $this->valid_keys = $this->
unserialize($this->
get(
'valid_keys'));
189 $this->valid_key_hash = md5(
serialize($this->valid_keys));
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Class ilGlobalCacheService.
unserialize($serialized_value)
__construct($serviceId, $component)
ilXcache constructor.