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

This commit is contained in:
Larry E. Masters 2015-12-27 22:25:23 -05:00
parent 9abb4e19f2
commit 46d385ac73

View file

@ -108,8 +108,8 @@ class FileEngine extends CacheEngine {
* @param int $duration How long to cache the data, in seconds * @param int $duration How long to cache the data, in seconds
* @return bool True if the data was successfully cached, false on failure * @return bool True if the data was successfully cached, false on failure
*/ */
public function write($key, $data, $duration) { public function write($key, $data = null, $duration) {
if ($data === '' || !$this->_init) { if (!$this->_init) {
return false; return false;
} }