diff options
author | Christian Schneider | 2015-07-21 15:16:19 +0200 |
---|---|---|
committer | Christian Schneider | 2015-07-21 15:16:19 +0200 |
commit | 021f96f2703983b9204147aa6ea107459bb5222e (patch) | |
tree | 71f247d8f47dde77ea42ede258ca00ab0e754d5e /it_cache.class | |
parent | a0e42b150e54052d710187c4c72a5ba231b99b7d (diff) | |
download | itools-021f96f2703983b9204147aa6ea107459bb5222e.tar.gz itools-021f96f2703983b9204147aa6ea107459bb5222e.tar.bz2 itools-021f96f2703983b9204147aa6ea107459bb5222e.zip |
Code style simplifications
Diffstat (limited to 'it_cache.class')
-rw-r--r-- | it_cache.class | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/it_cache.class b/it_cache.class index ff4dd33..e4f45c1 100644 --- a/it_cache.class +++ b/it_cache.class @@ -71,13 +71,9 @@ static function put($key, $value, $p = array()) $p = it_cache::_defaults($p); if ($p['distributed'] && ($memcache = it_cache::_get_memcache($p))) - { $success = @$memcache->set($key, $value, MEMCACHE_COMPRESSED, $p['ttl']); - } else - { $success = ($func = self::$_store_func) ? $func($key, $value, $p['ttl']) : null; - } if (!$success) it::error(array('title' => ($p['distributed'] ? "memcache" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 60, 'timewindow' => 10)); @@ -108,5 +104,3 @@ static function _get_memcache($p) 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); - -?> |