Merge pull request #25165 from owncloud/stable9-capped-user-cache

[stable9] Capped cache for user config
This commit is contained in:
Vincent Petry 2016-06-20 17:15:18 +02:00 committed by GitHub
commit 826654bb70
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}