photoprism/internal/hub/places/cache.go
Michael Mayer 286f06d894 Config: Add options for HTTP cache control #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 11:40:46 +01:00

9 lines
127 B
Go

package places
import (
"time"
gc "github.com/patrickmn/go-cache"
)
var clientCache = gc.New(time.Hour*4, 10*time.Minute)