Skip to content
Snippets Groups Projects
Commit d7528f06 authored by Bart Visscher's avatar Bart Visscher
Browse files

Disable query cache for Sqlite

parent 9508a58c
Branches
No related tags found
No related merge requests found
......@@ -384,8 +384,11 @@ class OC_DB {
$result=new PDOStatementWrapper($result);
}
if ((is_null($limit) || $limit == -1) and self::$cachingEnabled ) {
$type = OC_Config::getValue( "dbtype", "sqlite" );
if( $type != 'sqlite' && $type != 'sqlite3' ) {
self::$preparedQueries[$rawQuery] = $result;
}
}
return $result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment