function _write($data)
{
$fp = @fopen($this->_file, "wb");
if ($fp) {
if ($this->_fileLocking) {
@flock($fp, LOCK_EX);
}
if ($this->_readControl) {
@fwrite($fp, $this->_hash($data, $this->_readControlType), 32);
}
$len = strlen($data);
@fwrite($fp, $data, $len);
if ($this->_fileLocking) {
@flock($fp, LOCK_UN);
}
@fclose($fp);
return true;
}
$this->raiseError('Cache_Lite : Unable to write cache !', -1);
return false;
}