From ac38876e347be83f3114c69677f1ff795da10304 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 07:28:03 -0700 Subject: [PATCH] Add support for closures in APC cache driver. --- system/cache/driver/apc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/cache/driver/apc.php b/system/cache/driver/apc.php index 195aa0ad..93803045 100644 --- a/system/cache/driver/apc.php +++ b/system/cache/driver/apc.php @@ -38,7 +38,7 @@ public function get($key, $default = null) if ($cache === false) { - return $default; + return is_callable($default) ? call_user_func($default) : $default; } return $this->items[$key] = $cache;