From 9ce1c6339f7f303e533b0728452cac79367efc38 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 12 Feb 2010 06:58:43 +0000 Subject: #550124 by c960657, catch, and Crell: Remove prepared statement caching, which was a nice idea, but uses up tons of memory without any tangible performance benefits. --- includes/database/sqlite/database.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'includes/database/sqlite') diff --git a/includes/database/sqlite/database.inc b/includes/database/sqlite/database.inc index f175732f7..17d9034a9 100644 --- a/includes/database/sqlite/database.inc +++ b/includes/database/sqlite/database.inc @@ -161,10 +161,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection { return isset($specials[$operator]) ? $specials[$operator] : NULL; } - public function prepareQuery($query, $cache = TRUE) { - // It makes no sense to use the static prepared statement cache here, - // because all the work in our implementation is done in - // DatabaseStatement_sqlite::execute() and cannot be cached. + public function prepareQuery($query) { return $this->prepare($this->prefixTables($query)); } -- cgit v1.2.3