Commit ac38876e authored by Taylor Otwell's avatar Taylor Otwell

Add support for closures in APC cache driver.

parent 4a4a79ce
......@@ -38,7 +38,7 @@ class APC implements \System\Cache\Driver {
if ($cache === false)
{
return $default;
return is_callable($default) ? call_user_func($default) : $default;
}
return $this->items[$key] = $cache;
......
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