From ad827817434b08d9ae054f6fa43b2c28856ae429 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 3 Dec 2017 15:52:57 +0100 Subject: [PATCH] Reenable cache In 6341c7d72c8f773d5f14321150207c8b48a68f09, the cache was accidentally disabled due to a bug, this commit reenables the cache. --- cmd/restic/global.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index df36df9b8..eb6b5a646 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -363,6 +363,9 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) { return s, nil } + // start using the cache + s.UseCache(c) + oldCacheDirs, err := cache.Old(c.Base) if err != nil { Warnf("unable to find old cache directories: %v", err) @@ -389,7 +392,6 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) { len(oldCacheDirs), c.Base) } - s.UseCache(c) return s, nil }