Commit 436d3134 authored by Cobra_Fast's avatar Cobra_Fast

Improvement to Cache method to only cache items if fetch succeeded.

parent dbf4641f
......@@ -45,7 +45,8 @@ class TransientCache
$result = call_user_func_array($valueGetter, $params);
$this->Set($key, $result);
if ($result !== false)
$this->Set($key, $result);
return $result;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment