mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 03:09:33 -06:00
Fix condition for registry cache
We want caching for all registries except "memory".
This commit is contained in:
committed by
Ralf Haferkamp
parent
2f5cba2acb
commit
b5bb6980e2
@@ -69,7 +69,7 @@ func GetRegistry() registry.Registry {
|
||||
reg = mdnsr.NewRegistry()
|
||||
}
|
||||
// No cache needed for in-memory registry
|
||||
if plugin == "memory" {
|
||||
if plugin != "memory" {
|
||||
reg = cache.New(reg, cache.WithTTL(20*time.Second))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user