warn about extra db load

This commit is contained in:
dakkar 2025-06-27 11:16:56 +01:00
parent bddb6afa5d
commit a450f801cf
2 changed files with 3 additions and 1 deletions

View file

@ -74,8 +74,9 @@ async function clear() {
},
keepFilesInUse: {
label: i18n.ts.clearCachedFilesOptions.keepFilesInUse,
description: i18n.ts.clearCachedFilesOptions.keepFilesInUseDescription,
type: 'boolean',
default: true,
default: false,
},
});

View file

@ -641,3 +641,4 @@ clearCachedFilesOptions:
oneMonth: "one month"
oneYear: "one year"
keepFilesInUse: "Don't delete files used as avatars&c"
keepFilesInUseDescription: "this option requires more complicated database queries, you may need to increase the value of db.extra.statement_timeout in the configuration file"