summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-15 10:42:22 +0200
committerGitHub <noreply@github.com>2016-06-15 10:42:22 +0200
commitc5a60c3ae0a569215d7dc5fd27bd5ec8465bf0c3 (patch)
treec6ec99dd7d220459ff764c48db15c851e1cb10d7
parent57d3bb36eb7550f02eaacae1ec3259e21557fb9e (diff)
parent9e3cf794ea9af6bd0138e48ca9e1cb68a9157019 (diff)
downloadnextcloud-server-c5a60c3ae0a569215d7dc5fd27bd5ec8465bf0c3.tar.gz
nextcloud-server-c5a60c3ae0a569215d7dc5fd27bd5ec8465bf0c3.zip
Merge pull request #25084 from owncloud/stable9-enc-cappedcache-getaccesslist
[stable9] 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();
}