summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-13 17:47:57 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-13 17:47:57 +0200
commit9e3cf794ea9af6bd0138e48ca9e1cb68a9157019 (patch)
treee30deb2f3ba1590c191091efce13adc0ad187ca9
parentd41d5c48f01512b63eea25f1d7b8d8e508096ac5 (diff)
downloadnextcloud-server-9e3cf794ea9af6bd0138e48ca9e1cb68a9157019.tar.gz
nextcloud-server-9e3cf794ea9af6bd0138e48ca9e1cb68a9157019.zip
Use capped cache for encryption's user access list
-rw-r--r--lib/private/encryption/file.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/encryption/file.php b/lib/private/encryption/file.php
index ec55c2cea00..bd045c20294 100644
--- a/lib/private/encryption/file.php
+++ b/lib/private/encryption/file.php
@@ -22,6 +22,8 @@
namespace OC\Encryption;
+use OC\Cache\CappedMemoryCache;
+
class File implements \OCP\Encryption\IFile {
/** @var Util */
@@ -36,6 +38,7 @@ class File implements \OCP\Encryption\IFile {
public function __construct(Util $util) {
$this->util = $util;
+ $this->cache = new CappedMemoryCache();
}