Skip to content

Commit

Permalink
fix(FederatedUserService): Increase cache TTL for singleId to one week
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mejo- authored and backportbot[bot] committed Nov 25, 2024
1 parent b4cd662 commit 9445f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FederatedUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9445f02

Please sign in to comment.