summaryrefslogtreecommitdiff
path: root/it_cache.class
diff options
context:
space:
mode:
authorUrban Müller2026-02-23 16:23:22 +0100
committerUrban Müller2026-02-23 16:23:22 +0100
commit319f896c284ae1b0da2808b279eb2ac9265e8365 (patch)
tree7bf4205fdfc11d00c883e5b2c9a0e93ee66ab18a /it_cache.class
parent8e19498848400210624545694f3597754dd8ae30 (diff)
downloaditools-319f896c284ae1b0da2808b279eb2ac9265e8365.tar.gz
itools-319f896c284ae1b0da2808b279eb2ac9265e8365.tar.bz2
itools-319f896c284ae1b0da2808b279eb2ac9265e8365.zip
only filter unavoidable SERVER HAS FAILED with timeout, we want to see e.g. A BAD KEY WAS PROVIDED
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 fa78a79..037e7b6 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -88,7 +88,7 @@ static function put($key, $value, $p = array())
'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', value size=" . strlen(json_encode($value)),
'id' => $p['distributed'] ? "it_cache_fail_" . $memcache->getServerByKey($key)['host'] : "it_cache_fail",
- 'timewindow' => "1200-1300",
+ 'timewindow' => $memcache && it::match('SERVER HAS FAILED', $memcache->getResultMessage()) ? "1200-1300" : null,
'blockmailid' => $memcache ? "memcache_on_" . $memcache->getServerByKey($key)['host'] : null,
'blockmail' => $memcache? 12*3600 : null,
]));