mirror of
https://github.com/kopia/kopia.git
synced 2026-05-24 06:34:46 -04:00
trivial: move CachingOptions out of content.Manager, where it's not needed (#775)
* trivial: move CachingOptions out of content.Manager, where it's not needed * trivial: removed newManagerWithOptions which was the same as NewManager also moved one-time initialization to newReadManager()
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
var cacheClearCommand = cacheCommands.Command("clear", "Clears the cache")
|
||||
|
||||
func runCacheClearCommand(ctx context.Context, rep *repo.DirectRepository) error {
|
||||
if d := rep.Content.CachingOptions.CacheDirectory; d != "" {
|
||||
if d := rep.Cache.CacheDirectory; d != "" {
|
||||
log(ctx).Infof("Clearing cache directory: %v.", d)
|
||||
|
||||
// close repository before removing cache
|
||||
|
||||
Reference in New Issue
Block a user