From 98333fca43bef66883b1a55a63e1e9a5723b3d0c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 12 Aug 2019 15:27:41 +0200 Subject: no alerts if different machines fail in sequence --- it_cache.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/it_cache.class b/it_cache.class index bed0cd9..da5114f 100644 --- a/it_cache.class +++ b/it_cache.class @@ -89,7 +89,8 @@ static function put($key, $value, $p = array()) it::error(array_filter([ 'title' => ($p['distributed'] ? "memcache (" . ($memcache ? ($memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host']) : "n/a") . ")" : self::$_store_func) . " in it_cache::put failed", 'body' => "key='$key'", - 'timewindow' => "1200-1220", + 'id' => $p['distributed'] ? "it_cache_fail_" . $memcache->getServerByKey($key)['host'] : "it_cache_fail", + 'timewindow' => "1200-1300", 'blockmailid' => $memcache ? "memcache_on_" . $memcache->getServerByKey($key)['host'] : null, 'blockmail' => $memcache? 12*3600 : null, ])); -- cgit v1.2.3