feat: set cache_expiration for each storage (close #1455)
This commit is contained in:
@ -69,6 +69,15 @@ func getMainItems(config driver.Config) []driver.Item {
|
||||
Name: "down_proxy_url",
|
||||
Type: conf.TypeText,
|
||||
}}
|
||||
if !config.NoCache {
|
||||
items = append(items, driver.Item{
|
||||
Name: "cache_expiration",
|
||||
Type: conf.TypeNumber,
|
||||
Default: "30",
|
||||
Required: true,
|
||||
Help: "The cache expiration time for this storage",
|
||||
})
|
||||
}
|
||||
if !config.OnlyProxy && !config.OnlyLocal {
|
||||
items = append(items, []driver.Item{{
|
||||
Name: "web_proxy",
|
||||
|
Reference in New Issue
Block a user