$data = @
sqlite_escape_string($data);
$mktime =
time();
if ($lifetime === null
) { $expire = 0;
} else { $expire =
$mktime +
$lifetime;
} $this->
_query("DELETE FROM cache WHERE id='
$id'"
);
$sql = "INSERT INTO cache (id, content, lastModified, expire) VALUES ('
$id', '
$data',
$mktime,
$expire)";
$res =
$this->
_query($sql);
if (!
$res) { $this->
_log("Zend_Cache_Backend_Sqlite::save() : impossible to store the cache id=
$id"
);
return false;
} $res = true;
foreach ($tags as $tag) { $res =
$this->
_registerTag($id,
$tag) &&
$res;
} return $res;
} /**
* Remove a cache record
*
* @param string $id Cache id
* @return boolean True if no problem
*/