From 47b899e0c8d818614ad6e52d684b9954b0d769ac Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Feb 2013 22:41:48 +0100 Subject: Disable prepared query caching while doing an upgrade --- core/ajax/update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/ajax/update.php') 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 +} -- cgit v1.2.3