From aac1ca8891f578fb15df260b479cb8f353e1f174 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Wed, 20 Oct 2021 23:38:09 +0200 Subject: [PATCH] ok that it. No cache. Cache is no more. --- internal/loader/loader.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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{}), ), } }