From 77caa0e91346ec4478afcac10d102a0e9e4c3ce4 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 10 Jun 2016 13:02:41 +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 2bd9fb0210..3573ff19c6 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(); }