Signed-off-by: Robin Appelman <robin@icewind.nl>
*/
public static function getStorageInfo($path, $rootInfo = null) {
$memcache = \OC::$server->getMemCacheFactory()->create('storageInfo');
- $cached = $memcache->get($rootInfo ? '__root__' : $path);
+ $cacheKey = $rootInfo ? '__root__' . md5($path) : md5($path);
+ $cached = $memcache->get($cacheKey);
if (is_array($cached)) {
return $cached;
}
$ownerDisplayName = $owner->getDisplayName();
}
- $memcache->set($rootInfo ? '__root__' : $path, [
+ $memcache->set($cacheKey, [
'free' => $free,
'used' => $used,
'quota' => $quota,