Commit 3f2bdb76 authored by Taylor Otwell's avatar Taylor Otwell

only write file caches if minutes is greater than zero.

parent 78243fed
...@@ -67,6 +67,8 @@ class File extends Driver { ...@@ -67,6 +67,8 @@ class File extends Driver {
*/ */
public function put($key, $value, $minutes) public function put($key, $value, $minutes)
{ {
if ($minutes <= 0) return;
$value = $this->expiration($minutes).serialize($value); $value = $this->expiration($minutes).serialize($value);
file_put_contents($this->path.$key, $value, LOCK_EX); file_put_contents($this->path.$key, $value, LOCK_EX);
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
- Made the `get_timestamp` Eloquent method static. - Made the `get_timestamp` Eloquent method static.
- `Request::secure` now takes `application.ssl` configuration option into consideration. - `Request::secure` now takes `application.ssl` configuration option into consideration.
- Simplified the `paths.php` file. - Simplified the `paths.php` file.
- Only write file caches if number of minutes is greater than zero.
<a name="upgrade-3.2"></a> <a name="upgrade-3.2"></a>
## Upgrading From 3.1 ## Upgrading From 3.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment