summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-06-17 12:46:28 +0200
committerLukas Reschke <lukas@owncloud.com>2016-06-20 17:39:00 +0200
commitcf3b5e3e86954a1b8a98f70f9a85dc2380a8b28e (patch)
tree49559623457224a1461c62f260d59024c25c5200
parent07436d089bff1bafae632e57b2847c7e99c550bd (diff)
downloadnextcloud-server-cf3b5e3e86954a1b8a98f70f9a85dc2380a8b28e.tar.gz
nextcloud-server-cf3b5e3e86954a1b8a98f70f9a85dc2380a8b28e.zip
Capped cache for user config
-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 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;
}