mirror of
https://github.com/nextcloud/server.git
synced 2026-02-15 16:59:47 -05:00
Disable query cache for Sqlite
This commit is contained in:
parent
9508a58c79
commit
d7528f06df
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue