|Subject:||cache_root support broken in CHI::Driver::File? root_dir should be used in CHI documentation|
In the POD for CHI, the synopsis reads: my $cache = CHI->new( driver => 'File', cache_root => '/path/to/root' ); I'm fairly certain cache_root should be root_dir, as cache_root seems to be the older syntax. As of CHI 0.091, the cache_root syntax seems to be broken. When I put a real directory name in, like this: my $cache = CHI->new( driver => 'File', cache_root => '/real/dirname' ) The object's root dir still ends up being /tmp/chi-driver-file (Perl 5.8.8, Linux). This is bad and confusing; I was trying to figure out how come I had cached data, when my intended cache_root directory was still empty. Whether cache_root is supported or not, as a first step, the docs should be changed to reflect the suggested syntax, since this affects a large proportion of new users. Thank you.