From 04d0993a352ed44d2cd5a54df941ac5e37689b5f Mon Sep 17 00:00:00 2001 From: gnat Date: Tue, 20 Mar 2007 23:15:51 +0000 Subject: [PATCH] fixed two typos/non-existent variables. --- lib/Doctrine/Cache/Sqlite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Cache/Sqlite.php b/lib/Doctrine/Cache/Sqlite.php index 081a5cb17..59f461aed 100644 --- a/lib/Doctrine/Cache/Sqlite.php +++ b/lib/Doctrine/Cache/Sqlite.php @@ -75,7 +75,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable { $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); } @@ -89,7 +89,7 @@ class Doctrine_Cache_Sqlite extends Doctrine_Cache_Driver implements Countable { $sql = 'DELETE FROM cache WHERE id = ?'; - return (bool) $this->conn->exec($sql, array($md5)); + return (bool) $this->conn->exec($sql, array($id)); } /** * count