Subject: | MooseX::WithCache::KeyGenerator::DumpChecksum - faulty MD5 from data structures |
Hi,
There's a mistake in MooseX::WithCache::KeyGenerator::DumpChecksum - the instructions to
SortKeys etc should be on Data::Dumper, not Digest::MD5.
i.e.
sub generate {
my ($self, $key) = @_;
local $Data::Dumper::Indent = 0;
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Sortkeys = 1;
return Digest::MD5::md5_hex( Data::Dumper::Dumper($key) );
}
thanks,
Michael