diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-08-06 16:51:18 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-08-06 16:51:18 +0000 |
| commit | 4e7df7a5f21f91d49318840600fe329cae05c919 (patch) | |
| tree | 701cdaa4a1ae06412d86fc98529aa45ae26ae190 /packages/backend/src/server/api/AuthenticateService.ts | |
| parent | merge: Add icon for moving files/folders - for !583 (!586) (diff) | |
| parent | Fix timeout comments (diff) | |
| download | sharkey-4e7df7a5f21f91d49318840600fe329cae05c919.tar.gz sharkey-4e7df7a5f21f91d49318840600fe329cae05c919.tar.bz2 sharkey-4e7df7a5f21f91d49318840600fe329cae05c919.zip | |
merge: Remove infinite caches to prevent memory leak (!587)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/587
Closes #600 and #601
Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Approved-by: Marie <marie@kaifa.ch>
Diffstat (limited to 'packages/backend/src/server/api/AuthenticateService.ts')
| -rw-r--r-- | packages/backend/src/server/api/AuthenticateService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/AuthenticateService.ts b/packages/backend/src/server/api/AuthenticateService.ts index ddef8db987..690ff2e022 100644 --- a/packages/backend/src/server/api/AuthenticateService.ts +++ b/packages/backend/src/server/api/AuthenticateService.ts @@ -37,7 +37,7 @@ export class AuthenticateService implements OnApplicationShutdown { private cacheService: CacheService, ) { - this.appCache = new MemoryKVCache<MiApp>(Infinity); + this.appCache = new MemoryKVCache<MiApp>(1000 * 60 * 60 * 24 * 7); // 1w } @bindThis |