summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-26 22:41:05 +0100
committerBart Visscher <bartv@thisnet.nl>2013-02-27 22:32:39 +0100
commitd7528f06dfd8eb0576bd2cee5ae4230ffb5b5066 (patch)
treedf2b29ed5dcbb9983e14b682781db7b518019f5b
parent9508a58c79a175cabcf46b5014b34730707e4fc0 (diff)
downloadnextcloud-server-d7528f06dfd8eb0576bd2cee5ae4230ffb5b5066.tar.gz
nextcloud-server-d7528f06dfd8eb0576bd2cee5ae4230ffb5b5066.zip
Disable query cache for Sqlite
-rw-r--r--lib/db.php5
1 files changed, 4 insertions, 1 deletions
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;
}