mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Should be able to write a file with no data in it.
This commit is contained in:
parent
9abb4e19f2
commit
46d385ac73
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ class FileEngine extends CacheEngine {
|
|||
* @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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue