mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
Update cache.go
set the cache to 30m instead of 24h until we have a way to flush from the UI
This commit is contained in:
parent
cd6ad9d9dc
commit
20c1ca6e33
4
cache/cache.go
vendored
4
cache/cache.go
vendored
@ -21,9 +21,9 @@ func Set(c context.Context, key string, value interface{}) error {
|
||||
}
|
||||
|
||||
// Default creates an in-memory cache with the default
|
||||
// 24 hour expiration period.
|
||||
// 30 minute expiration period.
|
||||
func Default() Cache {
|
||||
return cache.NewMemoryWithTTL(time.Hour * 24)
|
||||
return cache.NewMemoryWithTTL(time.Minute * 30)
|
||||
}
|
||||
|
||||
// NewTTL returns an in-memory cache with the specified
|
||||
|
Loading…
Reference in New Issue
Block a user