From 96231b2e8284984a8972c2d0e7edcf9455c14110 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sun, 4 Jan 2026 09:20:50 +0100 Subject: [PATCH] refactor: clear cache on server startup --- app/server/modules/lifecycle/startup.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/server/modules/lifecycle/startup.ts b/app/server/modules/lifecycle/startup.ts index aaf9475b..f13d14c8 100644 --- a/app/server/modules/lifecycle/startup.ts +++ b/app/server/modules/lifecycle/startup.ts @@ -13,6 +13,7 @@ import { CleanupSessionsJob } from "../../jobs/cleanup-sessions"; import { repositoriesService } from "../repositories/repositories.service"; import { notificationsService } from "../notifications/notifications.service"; import { VolumeAutoRemountJob } from "~/server/jobs/auto-remount"; +import { cache } from "~/server/utils/cache"; const ensureLatestConfigurationSchema = async () => { const volumes = await db.query.volumesTable.findMany({}); @@ -41,6 +42,8 @@ const ensureLatestConfigurationSchema = async () => { }; export const startup = async () => { + cache.clear(); + await Scheduler.start(); await Scheduler.clear();