diff --git a/lib/autoloader.php b/lib/autoloader.php
index 72041200116ec52d9472e5a9f5322888602a406c..8b12e6bc4b7c54bb858c9b126dc2aa1603739d85 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -117,7 +117,11 @@ class Autoloader {
 		// Does this PHP have an in-memory cache? We cache the paths there
 		if ($this->constructingMemoryCache && !$this->memoryCache) {
 			$this->constructingMemoryCache = false;
-			$this->memoryCache = \OC\Memcache\Factory::createLowLatency('Autoloader');
+			try {
+				$this->memoryCache = \OC\Memcache\Factory::createLowLatency('Autoloader');
+			} catch(\Exception $ex) {
+				// no caching then - fine with me
+			}
 		}
 		if ($this->memoryCache) {
 			$pathsToRequire = $this->memoryCache->get($class);
diff --git a/lib/private/util.php b/lib/private/util.php
index ea2eb98d23c22de655d7c66ffc8329838ea1473a..1cbb19eaec44ae70f4ef8a3506db79b20bc1d217 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -617,7 +617,7 @@ class OC_Util {
 		if(is_null($id)) {
 			// We need to guarantee at least one letter in instanceid so it can be used as the session_name
 			$id = 'oc' . self::generateRandomBytes(10);
-			OC_Config::setValue('instanceid', $id);
+			OC_Config::$object->setValue('instanceid', $id);
 		}
 		return $id;
 	}