From 9e3cf794ea9af6bd0138e48ca9e1cb68a9157019 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 13 Jun 2016 17:47:57 +0200 Subject: [PATCH] Use capped cache for encryption's user access list --- lib/private/encryption/file.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/encryption/file.php b/lib/private/encryption/file.php index ec55c2cea0..bd045c2029 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(); }