Skip to content

Commit

Permalink
Optimize memory on cache write
Browse files Browse the repository at this point in the history
this commit fixes #8741
  • Loading branch information
psaintjust committed Apr 30, 2016
1 parent 96ec485 commit abb08a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/Engine/FileEngine.php
Expand Up @@ -151,7 +151,7 @@ public function write($key, $data)

$duration = $this->_config['duration'];
$expires = time() + $duration;
$contents = $expires . $lineBreak . $data . $lineBreak;
$contents = implode([$expires, $lineBreak, $data, $lineBreak]);

if ($this->_config['lock']) {
$this->_File->flock(LOCK_EX);
Expand Down

0 comments on commit abb08a1

Please sign in to comment.