Config: Default to cache TTL defined in thumbs package #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
010d243d14
commit
d18e5d3ad3
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func (c *Config) HttpCompression() string {
|
|||
func (c *Config) HttpCacheTTL() thumb.MaxAge {
|
||||
if c.options.HttpCacheTTL < 1 || c.options.HttpCacheTTL > 31536000 {
|
||||
// Default to one month.
|
||||
return 2630000
|
||||
return thumb.CacheTTL
|
||||
}
|
||||
|
||||
return thumb.MaxAge(c.options.HttpCacheTTL)
|
||||
|
|
Loading…
Reference in a new issue