Added removal of cache when not needed

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-02-07 18:01:02 +01:00
parent 477b60da26
commit aaffac735c
7 changed files with 7 additions and 0 deletions

View File

@@ -20,5 +20,6 @@ export default function loadCronEvents() {
cron.time.dayOfWeek
new CronJob(time, cron.execute, cron.onComplete, cron.start, cron.timeZone).start()
delete require.cache[require.resolve(filePath)]
}
}