Config: Default to cache TTL defined in thumbs package #3297

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-03-20 13:15:54 +01:00
parent 010d243d14
commit d18e5d3ad3

View file

@ -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)