diff options
author | Urban Müller | 2018-01-25 14:39:27 +0100 |
---|---|---|
committer | Urban Müller | 2018-01-25 14:39:27 +0100 |
commit | b535f5628a483eeacb6794b23d7e723b9c854b64 (patch) | |
tree | 853f795f7058118893353fe08c6bc3c1edfc2981 | |
parent | 9ba6079899cfea961e86128e64680bfa8f946e74 (diff) | |
download | itools-b535f5628a483eeacb6794b23d7e723b9c854b64.tar.gz itools-b535f5628a483eeacb6794b23d7e723b9c854b64.tar.bz2 itools-b535f5628a483eeacb6794b23d7e723b9c854b64.zip |
prevent memcache error reports during machine upgrades
-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 ff6dbfa..225e99f 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 ? ($memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host']) : "n/a") . ")" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 300, 'timewindow' => 10)); + it::error(['title' => ($p['distributed'] ? "memcache (" . ($memcache ? ($memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host']) : "n/a") . ")" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'timewindow' => "900-920"]); $GLOBALS['it_cache_local'][$key] = $value; # Also store local copy |