photoprism/internal/thumb/cache.go
Michael Mayer 010d243d14 Config: Change cache TTL default from 2630000 to 2592000 #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 13:13:56 +01:00

16 lines
281 B
Go

package thumb
import "strconv"
// MaxAge represents a cache TTL in seconds.
type MaxAge int
// String returns the cache TTL in seconds as string.
func (a MaxAge) String() string {
return strconv.Itoa(int(a))
}
var (
CacheTTL MaxAge = 2592000
CachePublic = false
)