summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-26 22:41:48 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-26 22:41:48 +0100
commit47b899e0c8d818614ad6e52d684b9954b0d769ac (patch)
treeceff2bacebc3a0267e676e3f0cbd2e3100c0ec5d /core/ajax
parentf3a8bf9260b2808d98e97759b25b20bc44987c40 (diff)
downloadnextcloud-server-47b899e0c8d818614ad6e52d684b9954b0d769ac.tar.gz
nextcloud-server-47b899e0c8d818614ad6e52d684b9954b0d769ac.zip
Disable prepared query caching while doing an upgrade
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 20ab045c892..b112cf6266b 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -4,6 +4,7 @@ $RUNTIME_NOAPPS = true;
require_once '../../lib/base.php';
if (OC::checkUpgrade(false)) {
+ \OC_DB::enableCaching(false);
$updateEventSource = new OC_EventSource();
$watcher = new UpdateWatcher($updateEventSource);
OC_Hook::connect('update', 'success', $watcher, 'success');
@@ -64,4 +65,4 @@ class UpdateWatcher {
$this->eventSource->close();
}
-} \ No newline at end of file
+}