fixed two typos/non-existent variables.
This commit is contained in:
parent
36e3b7526a
commit
04d0993a35
@ -75,7 +75,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable
|
|||||||
{
|
{
|
||||||
$sql = 'INSERT INTO cache (id, data, expires) VALUES (?, ?, ?)';
|
$sql = 'INSERT INTO cache (id, data, expires) VALUES (?, ?, ?)';
|
||||||
|
|
||||||
$params = array($id, serialize($data), (time() + $lifespan));
|
$params = array($id, serialize($data), (time() + $lifeTime));
|
||||||
|
|
||||||
return (bool) $this->conn->exec($sql, $params);
|
return (bool) $this->conn->exec($sql, $params);
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable
|
|||||||
{
|
{
|
||||||
$sql = 'DELETE FROM cache WHERE id = ?';
|
$sql = 'DELETE FROM cache WHERE id = ?';
|
||||||
|
|
||||||
return (bool) $this->conn->exec($sql, array($md5));
|
return (bool) $this->conn->exec($sql, array($id));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* count
|
* count
|
||||||
|
Loading…
Reference in New Issue
Block a user