From 9445f02adac32d259dbeb02f9159df89c74aa510 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 13 Nov 2024 12:11:46 +0100 Subject: [PATCH] fix(FederatedUserService): Increase cache TTL for singleId to one week The singleId for a user doesn't change once it got generated, so no need to refresh the cache every 15 minutes. Let's cache it for one week instead. Signed-off-by: Jonas --- lib/Service/FederatedUserService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/FederatedUserService.php b/lib/Service/FederatedUserService.php index 8aec3be57..d69914a86 100644 --- a/lib/Service/FederatedUserService.php +++ b/lib/Service/FederatedUserService.php @@ -94,7 +94,7 @@ class FederatedUserService { public const CACHE_SINGLE_CIRCLE = 'circles/singleCircle'; - public const CACHE_SINGLE_CIRCLE_TTL = 900; + public const CACHE_SINGLE_CIRCLE_TTL = 604800; // one week public const CONFLICT_001 = 1; public const CONFLICT_002 = 2;