summaryrefslogtreecommitdiff
path: root/it_cache.class
diff options
context:
space:
mode:
authorUrban Müller2018-01-17 18:11:25 +0100
committerUrban Müller2018-01-17 18:11:25 +0100
commitd9f17cbad84fc769b9e663c674a52373df48faf7 (patch)
treef161d052888ec13dc849852873487bf49aba252c /it_cache.class
parent1b6f4c10069a3bc12b2f8f6b6414338ddc084223 (diff)
downloaditools-d9f17cbad84fc769b9e663c674a52373df48faf7.tar.gz
itools-d9f17cbad84fc769b9e663c674a52373df48faf7.tar.bz2
itools-d9f17cbad84fc769b9e663c674a52373df48faf7.zip
no fatals if memcache unreachable
Diffstat (limited to 'it_cache.class')
-rw-r--r--it_cache.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class
index da5918e..b2e9a31 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 (" . $memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host'] . ")" : 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 (" . ($memcache ? $memcache->getResultMessage() : "") . " on " . $memcache->getServerByKey($key)['host'] . ")" : 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