diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-20 17:15:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 17:15:18 +0200 |
commit | 826654bb70c78bd577e71e0d75b5f2ecef6769ff (patch) | |
tree | 3334f34c41104a9cf0a6ea63cd818bca3c2a8938 | |
parent | 3e3c17a577d0fdf052c74b3d306c17f4d3f2d9df (diff) | |
parent | 0e3682d810d9d5ddeb714ba337976cec5f7b2010 (diff) | |
download | nextcloud-server-826654bb70c78bd577e71e0d75b5f2ecef6769ff.tar.gz nextcloud-server-826654bb70c78bd577e71e0d75b5f2ecef6769ff.zip |
Merge pull request #25165 from owncloud/stable9-capped-user-cache
[stable9] Capped cache for user config
-rw-r--r-- | lib/private/allconfig.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index b4888fde022..e982b064736 100644 --- a/lib/private/allconfig.php +++ b/lib/private/allconfig.php @@ -27,6 +27,7 @@ */ namespace OC; +use OC\Cache\CappedMemoryCache; use OCP\IDBConnection; use OCP\PreConditionNotMetException; @@ -58,14 +59,15 @@ class AllConfig implements \OCP\IConfig { * - deleteAllUserValues * - deleteAppFromAllUsers * - * @var array $userCache + * @var CappedMemoryCache $userCache */ - private $userCache = array(); + private $userCache; /** * @param SystemConfig $systemConfig */ function __construct(SystemConfig $systemConfig) { + $this->userCache = new CappedMemoryCache(); $this->systemConfig = $systemConfig; } |