From a29e76f27bd4296d74b755928800565426856068 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 07:41:39 -0700 Subject: [PATCH] Force File cache driver to return null when items are expired. --- system/cache/driver/file.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/cache/driver/file.php b/system/cache/driver/file.php index e68bfb50..f76522b5 100644 --- a/system/cache/driver/file.php +++ b/system/cache/driver/file.php @@ -43,7 +43,9 @@ public function get($key) if (time() >= substr($cache, 0, 10)) { - return $this->forget($key); + $this->forget($key); + + return null; } return $this->items[$key] = unserialize(substr($cache, 10));