diff --git a/internal/loader/loader.go b/internal/loader/loader.go index 5dee50f..946150c 100644 --- a/internal/loader/loader.go +++ b/internal/loader/loader.go @@ -6,7 +6,6 @@ import ( "path/filepath" "strings" - "git.kapelle.org/niklas/s3browser/internal/cache" "git.kapelle.org/niklas/s3browser/internal/helper" types "git.kapelle.org/niklas/s3browser/internal/types" "github.com/graph-gophers/dataloader" @@ -25,19 +24,19 @@ func NewLoader(config types.AppConfig) *Loader { return &Loader{ listObjectsLoader: dataloader.NewBatchedLoader( listObjectsBatch, - dataloader.WithCache(cache.NewTTLCache(config.CacheTTL, config.CacheCleanup)), + dataloader.WithCache(&dataloader.NoCache{}), ), listObjectsRecursiveLoader: dataloader.NewBatchedLoader( listObjectsRecursiveBatch, - dataloader.WithCache(cache.NewTTLCache(config.CacheTTL, config.CacheCleanup)), + dataloader.WithCache(&dataloader.NoCache{}), ), statObjectLoader: dataloader.NewBatchedLoader( statObjectBatch, - dataloader.WithCache(cache.NewTTLCache(config.CacheTTL, config.CacheCleanup)), + dataloader.WithCache(&dataloader.NoCache{}), ), listBucketsLoader: dataloader.NewBatchedLoader( listBucketsBatch, - dataloader.WithCache(cache.NewTTLCache(config.CacheTTL, config.CacheCleanup)), + dataloader.WithCache(&dataloader.NoCache{}), ), } }