Merge pull request #1945 from owncloud/sqlite-query-cache

Disable query cache for Sqlite
This commit is contained in:
Bernhard Posselt 2013-02-27 13:34:09 -08:00
commit 8a0d786d66

View file

@ -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;
}