diff options
author | Urban Müller | 2017-03-21 13:57:13 +0100 |
---|---|---|
committer | Urban Müller | 2017-03-21 14:28:08 +0100 |
commit | 80f1b687006f2bf1844e6d79b3e9c6362041b7ef (patch) | |
tree | eb7d3b7132b9a89142e3420632c3b89af29cd6b1 /it_cache.class | |
parent | 9177e8f225ceb494a77786ec49187afe0ae6102f (diff) | |
download | itools-80f1b687006f2bf1844e6d79b3e9c6362041b7ef.tar.gz itools-80f1b687006f2bf1844e6d79b3e9c6362041b7ef.tar.bz2 itools-80f1b687006f2bf1844e6d79b3e9c6362041b7ef.zip |
more detailed memcache errs
Diffstat (limited to 'it_cache.class')
-rw-r--r-- | it_cache.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class index 2c67d87..d2f5fe0 100644 --- a/it_cache.class +++ b/it_cache.class @@ -86,7 +86,7 @@ static function put($key, $value, $p = array()) $success = ($func = self::$_store_func) ? $func($key, $value, $p['ttl']) : null; if (!$success && $p['safety'] == 1) - it::error(array('title' => ($p['distributed'] ? "memcache" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 300, 'timewindow' => 10)); + it::error(array('title' => ($p['distributed'] ? "memcache (ResultCode " . $memcache->getResultCode() . ")" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 300, 'timewindow' => 10)); $GLOBALS['it_cache_local'][$key] = $value; # Also store local copy |