mirror of
https://github.com/rancher/steve.git
synced 2025-09-04 08:55:55 +00:00
[v2.9] Backport PR 271: Index more sqlite cache fields. (#315)
* [v2.9] Backport PR 271: Index more sqlite cache fields. * go mod tidy Signed-off-by: Silvio Moioli <silvio@moioli.net> --------- Signed-off-by: Silvio Moioli <silvio@moioli.net> Co-authored-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
type Config struct {
|
||||
Debug bool
|
||||
DebugLevel int
|
||||
SQLCache bool
|
||||
}
|
||||
|
||||
func (c *Config) MustSetupDebug() {
|
||||
@@ -54,6 +55,10 @@ func Flags(config *Config) []cli.Flag {
|
||||
Value: 7,
|
||||
Destination: &config.DebugLevel,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "sql-cache",
|
||||
Destination: &config.SQLCache,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,5 +73,9 @@ func FlagsV2(config *Config) []cliv2.Flag {
|
||||
Value: 7,
|
||||
Destination: &config.DebugLevel,
|
||||
},
|
||||
&cliv2.BoolFlag{
|
||||
Name: "sql-cache",
|
||||
Destination: &config.SQLCache,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user