mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Change default value of maxTotalChatBackups
This commit is contained in:
@@ -99,7 +99,7 @@ disableChatBackup: false
|
|||||||
# Number of backups to keep for each chat and settings file
|
# Number of backups to keep for each chat and settings file
|
||||||
numberOfBackups: 50
|
numberOfBackups: 50
|
||||||
# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
|
# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
|
||||||
maxTotalChatBackups: 500
|
maxTotalChatBackups: -1
|
||||||
# Interval in milliseconds to throttle chat backups per user
|
# Interval in milliseconds to throttle chat backups per user
|
||||||
chatBackupThrottleInterval: 10000
|
chatBackupThrottleInterval: 10000
|
||||||
# Allowed hosts for card downloads
|
# Allowed hosts for card downloads
|
||||||
|
@@ -33,7 +33,7 @@ function backupChat(directory, name, chat) {
|
|||||||
|
|
||||||
removeOldBackups(directory, `chat_${name}_`);
|
removeOldBackups(directory, `chat_${name}_`);
|
||||||
|
|
||||||
const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', 500));
|
const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', -1));
|
||||||
if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {
|
if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user