Add support for closures in APC cache driver.
This commit is contained in:
2
system/cache/driver/apc.php
vendored
2
system/cache/driver/apc.php
vendored
@@ -38,7 +38,7 @@ class APC implements \System\Cache\Driver {
|
|||||||
|
|
||||||
if ($cache === false)
|
if ($cache === false)
|
||||||
{
|
{
|
||||||
return $default;
|
return is_callable($default) ? call_user_func($default) : $default;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->items[$key] = $cache;
|
return $this->items[$key] = $cache;
|
||||||
|
|||||||
Reference in New Issue
Block a user