From a0e42b150e54052d710187c4c72a5ba231b99b7d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 21 Jul 2015 15:15:35 +0200 Subject: Remove eaccelerator, supported are now apc/apcu --- it_cache.class | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/it_cache.class b/it_cache.class index 1a1ea02..ff4dd33 100644 --- a/it_cache.class +++ b/it_cache.class @@ -76,7 +76,6 @@ static function put($key, $value, $p = array()) } else { - function_exists("eaccelerator_gc") && eaccelerator_gc(); $success = ($func = self::$_store_func) ? $func($key, $value, $p['ttl']) : null; } @@ -107,7 +106,7 @@ static function _get_memcache($p) } -it_cache::$_fetch_func = function_exists("apcu_fetch") ? "apcu_fetch" : (function_exists("apc_fetch") ? "apc_fetch" : (function_exists("eaccelerator_get") ? "eaccelerator_get" : null)); -it_cache::$_store_func = function_exists("apcu_store") ? "apcu_store" : (function_exists("apc_store") ? "apc_store" : (function_exists("eaccelerator_put") ? "eaccelerator_put" : null)); +it_cache::$_fetch_func = function_exists("apcu_fetch") ? "apcu_fetch" : (function_exists("apc_fetch") ? "apc_fetch" : null); +it_cache::$_store_func = function_exists("apcu_store") ? "apcu_store" : (function_exists("apc_store") ? "apc_store" : null); ?> -- cgit v1.2.3