From ee5212a27f49a8d1d762c77c5789bda18f1b182b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 10:38:40 -0500 Subject: [PATCH] Refactoring the cache class. --- system/cache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/cache.php b/system/cache.php index d5998bb0..90c12219 100644 --- a/system/cache.php +++ b/system/cache.php @@ -54,7 +54,10 @@ public static function driver($driver = null) */ public static function get($key, $default = null, $driver = null) { - if (is_null($driver)) $driver = Config::get('cache.driver'); + if (is_null($driver)) + { + $driver = Config::get('cache.driver'); + } if (is_null($item = static::driver($driver)->get($key))) {