Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97ac0a71 authored by theronakpatel's avatar theronakpatel
Browse files

added cache

parent d3e70a01
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use OCA\EcloudAccounts\AppInfo\Application;
use OCA\EcloudAccounts\Db\TwoFactorMapper;
use OCA\EcloudAccounts\Exception\SSOAdminAccessTokenException;
use OCA\EcloudAccounts\Exception\SSOAdminAPIException;
use OCP\ICacheFactory;
use OCP\ICache;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IUserManager;
@@ -28,7 +28,7 @@ class SSOService {
	private IFactory $l10nFactory;
	private IUserManager $userManager;
	private TwoFactorMapper $twoFactorMapper;
	private ICacheFactory $cacheFactory;

	private ICache $clientsCache;

	private string $mainDomain;
@@ -60,8 +60,8 @@ class SSOService {
		$this->l10nFactory = $l10nFactory;
		$this->userManager = $userManager;
		$this->twoFactorMapper = $twoFactorMapper;
		$this->cacheFactory = $cacheFactory;
		$this->clientsCache = $this->cacheFactory->createDistributed('ecloud_accounts_realm_clients');

		$this->clientsCache = $cacheFactory->createDistributed('ecloud_accounts_realm_clients');

		$this->mainDomain = $this->config->getSystemValue("main_domain");
		$this->legacyDomain = $this->config->getSystemValue("legacy_domain");