Skip to content
Snippets Groups Projects
Commit 535ed836 authored by Owen Winkler's avatar Owen Winkler
Browse files

Merge pull request #4894 from owncloud/fixing-4620-master

Fixing broken layout in master due to APC enabled
parents 5ade5959 9eab8b39
No related branches found
No related tags found
No related merge requests found
......@@ -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;
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);
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment