5 min cron job

This commit is contained in:
Nameless 2021-11-03 14:52:27 +00:00
parent 7206a2ce95
commit cfe252d7ff
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Server {
createJobs() {
// TODO: move into the database config. (we can just show the crontab line for start, later on we can add dropdowns and stuff)
this.jobs.stats = new CronJob('0 0 * * * *', Util.saveStatsToDb, null, true);
this.jobs.fileExpiry = new CronJob('* * * * * *', Util.deleteExpiredFiles, null, true);
this.jobs.fileExpiry = new CronJob('*/5 * * * * *', Util.deleteExpiredFiles, null, true);
}
start() {