Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
3f2bdb76
Commit
3f2bdb76
authored
Apr 19, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only write file caches if minutes is greater than zero.
parent
78243fed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
file.php
laravel/cache/drivers/file.php
+2
-0
changes.md
laravel/documentation/changes.md
+1
-0
No files found.
laravel/cache/drivers/file.php
View file @
3f2bdb76
...
@@ -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
);
...
...
laravel/documentation/changes.md
View file @
3f2bdb76
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment