mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 02:43:21 -04:00
Merge pull request #10761 from canadaduane/fix_occ_upgrade
Ensure db connection before changing cache state
This commit is contained in:
commit
6cdb1d89ae
1 changed files with 1 additions and 0 deletions
|
|
@ -417,6 +417,7 @@ class OC_DB {
|
|||
* @param bool $enabled
|
||||
*/
|
||||
static public function enableCaching($enabled) {
|
||||
self::connect();
|
||||
if ($enabled) {
|
||||
self::$connection->enableQueryStatementCaching();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue