feat: reduce log file retention period and increase cache size

This commit is contained in:
SunBK201 2025-10-31 18:33:36 +08:00
parent ea67ab9929
commit f65f48ca04
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ func SetLogConf(level string) {
Filename: log_file,
MaxSize: 2, // megabytes
MaxBackups: 3,
MaxAge: 28, //days
MaxAge: 15, //days
LocalTime: true,
Compress: true,
}

View File

@ -66,7 +66,7 @@ func New(cfg *config.Config) (*Rewriter, error) {
return nil, err
}
cache := expirable.NewLRU[string, string](300, nil, 10*time.Minute)
cache := expirable.NewLRU[string, string](1024, nil, 10*time.Minute)
whitelist := make(map[string]struct{}, len(defaultWhitelist))
for _, s := range defaultWhitelist {