Skip to content
Permalink
Browse files

Should be able to write a file with no data in it.

  • Loading branch information...
phpnut committed Dec 28, 2015
1 parent 9abb4e1 commit 46d385ac73cc420aaceee9611ca6af4bec27709a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Cache/Engine/FileEngine.php
@@ -108,8 +108,8 @@ public function gc($expires = null) {
* @param int $duration How long to cache the data, in seconds
* @return bool True if the data was successfully cached, false on failure
*/
public function write($key, $data, $duration) {
if ($data === '' || !$this->_init) {
public function write($key, $data = null, $duration) {
if (!$this->_init) {
return false;
}

0 comments on commit 46d385a

Please sign in to comment.
You can’t perform that action at this time.