From d7528f06dfd8eb0576bd2cee5ae4230ffb5b5066 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 26 Feb 2013 22:41:05 +0100 Subject: Disable query cache for Sqlite --- lib/db.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index 1fd852b370f..347deac8519 100644 --- a/lib/db.php +++ b/lib/db.php @@ -384,7 +384,10 @@ class OC_DB { $result=new PDOStatementWrapper($result); } if ((is_null($limit) || $limit == -1) and self::$cachingEnabled ) { - self::$preparedQueries[$rawQuery] = $result; + $type = OC_Config::getValue( "dbtype", "sqlite" ); + if( $type != 'sqlite' && $type != 'sqlite3' ) { + self::$preparedQueries[$rawQuery] = $result; + } } return $result; } -- cgit v1.2.3