public function save($data,
$id,
$tags = array
(),
$specificLifetime = false
) { $this->
_checkAndBuildStructure();
$lifetime =
$this->
getLifetime($specificLifetime);
$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"
);