From e81dd68a94a6258afc83ad6a297af263f8a46a68 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 10:21:35 -0500 Subject: [PATCH] Refactoring file cache driver. --- system/cache/file.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/cache/file.php b/system/cache/file.php index ec3187d1..6e3ba957 100644 --- a/system/cache/file.php +++ b/system/cache/file.php @@ -31,12 +31,7 @@ class File implements Driver { // The cache expiration date is stored as a UNIX timestamp at the beginning // of the cache file. We'll extract it out and check it here. - if (time() >= substr($cache, 0, 10)) - { - $this->forget($key); - - return null; - } + if (time() >= substr($cache, 0, 10)) return $this->forget($key); return unserialize(substr($cache, 10)); }