summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2021-01-13 14:18:03 +0100
committerChristian Schneider2021-01-13 14:18:03 +0100
commit1f57cc663c83ec44ec292256147f9811945e260a (patch)
tree5519aae3f4422ed13c019b8c7a475a792b5b2047
parent7c50aebc15878dcc51247c8198f388a01ad2bdcc (diff)
downloaditools-1f57cc663c83ec44ec292256147f9811945e260a.tar.gz
itools-1f57cc663c83ec44ec292256147f9811945e260a.tar.bz2
itools-1f57cc663c83ec44ec292256147f9811945e260a.zip
Revert "give error keys on apc failures"
This reverts commit 333809bea4b0ee8386db1464c90ee9a2cb95569d.
-rw-r--r--it_cache.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_cache.class b/it_cache.class
index 7c5816f..da5114f 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -83,12 +83,12 @@ static function put($key, $value, $p = array())
if ($p['distributed'] && ($memcache = it_cache::_get_memcache($p)))
$success = @$memcache->set($key, $value, $p['ttl']);
else
- $success = !count(($func = self::$_store_func) ? ($errors = $func([$key => $value], null, $p['ttl'])) : ['noapcu']);
+ $success = ($func = self::$_store_func) ? $func($key, $value, $p['ttl']) : null;
if (!$success && $p['safety'] == 1)
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, 'errors' => $errors],
+ 'body' => "key='$key'",
'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,