From dfadb156aaf6759ab9d06de7dfa3261c82ea9910 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 17 Dec 2018 17:22:34 +0100 Subject: Remove cache size limit The used key is incorrect and should have been 'max_size', but it's not needed yet so don't use it. Signed-off-by: Florian Pritz --- lib/App/ArchLinux/PackagerTools/Cache.pm | 1 - lib/App/ArchLinux/PackagerTools/Config.pm | 1 - 2 files changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/App/ArchLinux/PackagerTools/Cache.pm b/lib/App/ArchLinux/PackagerTools/Cache.pm index 6d5bec3..c0b1aa6 100644 --- a/lib/App/ArchLinux/PackagerTools/Cache.pm +++ b/lib/App/ArchLinux/PackagerTools/Cache.pm @@ -48,7 +48,6 @@ method new_no_defaults($class: $context, $deps = {}) { $self->{CHI} = CHI->new( driver => 'File', root_dir => $config->{cache}->{root_dir}, - cache_size => $config->{cache}->{cache_size}, ); $context->{$class} = $self; return $self; diff --git a/lib/App/ArchLinux/PackagerTools/Config.pm b/lib/App/ArchLinux/PackagerTools/Config.pm index bd92c17..8fab001 100644 --- a/lib/App/ArchLinux/PackagerTools/Config.pm +++ b/lib/App/ArchLinux/PackagerTools/Config.pm @@ -102,7 +102,6 @@ method _get_default_config() { return { cache => { root_dir => path(($ENV{XDG_CACHE_HOME} // $ENV{HOME}."/.cache")."/perlpkg/v1/")->stringify(), - cache_size => '50M', }, cpan => { cache_timeout => '60m', -- cgit v1.2.3-24-g4f1b