diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go index ebcc9a7895f..d44afed8d68 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go @@ -97,8 +97,10 @@ func (h *Handler) Init(c *config.Config) error { h.resourceInfoCache = gcache.New(c.ResourceInfoCacheSize).LFU().Build() if h.resourceInfoCacheTTL > 0 { - cwm, _ := getCacheWarmupManager(c) - go h.startCacheWarmup(cwm) + cwm, err := getCacheWarmupManager(c) + if err == nil { + go h.startCacheWarmup(cwm) + } } return nil