mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
Merge branch 'backport-8741-8690' into 2.x
This commit is contained in:
parent
0934d02f0e
commit
cd07850337
3 changed files with 8 additions and 2 deletions
|
@ -132,7 +132,7 @@ class FileEngine extends CacheEngine {
|
|||
}
|
||||
|
||||
$expires = time() + $duration;
|
||||
$contents = $expires . $lineBreak . $data . $lineBreak;
|
||||
$contents = implode([$expires, $lineBreak, $data, $lineBreak]);
|
||||
|
||||
if ($this->settings['lock']) {
|
||||
$this->_File->flock(LOCK_EX);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue