Add support for closures in APC cache driver.
This commit is contained in:
parent
4a4a79ce34
commit
ac38876e34
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)
|
||||
{
|
||||
return $default;
|
||||
return is_callable($default) ? call_user_func($default) : $default;
|
||||
}
|
||||
|
||||
return $this->items[$key] = $cache;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user