Merge pull request #10761 from canadaduane/fix_occ_upgrade

Ensure db connection before changing cache state
This commit is contained in:
Thomas Müller 2014-09-03 11:27:16 +02:00
commit 6cdb1d89ae

View file

@ -417,6 +417,7 @@ class OC_DB {
* @param bool $enabled
*/
static public function enableCaching($enabled) {
self::connect();
if ($enabled) {
self::$connection->enableQueryStatementCaching();
} else {