summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-20 09:53:58 +0200
committerGitHub <noreply@github.com>2016-06-20 09:53:58 +0200
commit01041045dae9f70b83d757496a3107ed186be346 (patch)
tree097eecc6fcef674e8b1a5b32b70591716eb1a4da /lib
parentbd13353c4d246398d4ed31c6696338f8032221ae (diff)
parent66560b8ed92a543b9b2f45807624d9c473f2145c (diff)
downloadnextcloud-server-01041045dae9f70b83d757496a3107ed186be346.tar.gz
nextcloud-server-01041045dae9f70b83d757496a3107ed186be346.zip
Merge pull request #25168 from owncloud/capped-user-cache
Capped cache for user config
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AllConfig.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php
index e082cea3305..c8b2009fcc7 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;
}