diff --git a/cake/libs/cache/file.php b/cake/libs/cache/file.php index c7d07d912..087ba0aa1 100644 --- a/cake/libs/cache/file.php +++ b/cake/libs/cache/file.php @@ -139,7 +139,7 @@ class FileEngine extends CacheEngine { $expires = time() + $duration; $contents = $expires . $lineBreak . $data . $lineBreak; - if (!$handle = fopen($this->_File->path, 'c')) { + if (!$handle = fopen($this->_File->path, 'a')) { return false; }