diff options
-rw-r--r-- | it_cache.class | 5 |
1 files 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); ?> |