Skip to content
Snippets Groups Projects
Commit 8a0d786d authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

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

Disable query cache for Sqlite
parents 9508a58c d7528f06
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