diff --git a/laravel/cache/drivers/database.php b/laravel/cache/drivers/database.php index 3983e93c..44bf4785 100644 --- a/laravel/cache/drivers/database.php +++ b/laravel/cache/drivers/database.php @@ -75,7 +75,7 @@ public function put($key, $value, $minutes) $expiration = $this->expiration($minutes); // To update the value, we'll first attempt an insert against the - // database and if we catch an exception, we'll assume that the + // database and if we catch an exception we'll assume that the // primary key already exists in the table and update. try { diff --git a/laravel/cache/drivers/file.php b/laravel/cache/drivers/file.php index ee54aa3d..1d7e69a1 100644 --- a/laravel/cache/drivers/file.php +++ b/laravel/cache/drivers/file.php @@ -42,9 +42,8 @@ protected function retrieve($key) if ( ! file_exists($this->path.$key)) return null; // File based caches store have the expiration timestamp stored in - // UNIX format prepended to their contents. This timestamp is then - // extracted and removed when the cache is read to determine if - // the file is still valid. + // UNIX format prepended to their contents. We'll compare the + // timestamp to the current time when we read the file. if (time() >= substr($cache = file_get_contents($this->path.$key), 0, 10)) { return $this->forget($key);