summaryrefslogtreecommitdiff
path: root/it_cache.class
diff options
context:
space:
mode:
authorUrban Müller2018-08-30 15:14:37 +0200
committerUrban Müller2018-08-30 15:14:37 +0200
commitd5448b5e0872530c29728ef03196ec90324057a6 (patch)
tree10f6846afd951b42bf12755b8e100ccd8d0af6af /it_cache.class
parent0facce957eb1d1b4a7ce73f413e95d2501b6272b (diff)
downloaditools-d5448b5e0872530c29728ef03196ec90324057a6.tar.gz
itools-d5448b5e0872530c29728ef03196ec90324057a6.tar.bz2
itools-d5448b5e0872530c29728ef03196ec90324057a6.zip
keep key out of title so err msg is the same on each backend and gets deduped
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 1e6df1e..2186af3 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(['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' => "1200-1220"]);
+ it::error(['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"]);
$GLOBALS['it_cache_local'][$key] = $value; # Also store local copy