Genealogy-Wills
view release on metacpan or search on metacpan
bin/create_db.PL view on Meta::CPAN
$cache_dir = File::Spec->catfile(File::HomeDir->my_home(), '.cache', 'http-cache-transparent');
}
HTTP::Cache::Transparent::init({
BasePath => $cache_dir,
Verbose => 0,
NoUpdate => 60 * 60 * 24 * 7 * 31, # The archive never changes
MaxAge => 30 * 24
}) || Carp::croak("$0: $cache_dir: $!");
my $ua = LWP::UserAgent::WithCache->new(timeout => 10, keep_alive => 1);
$ua->env_proxy(1);
$ua->agent('Genealogy::Wills');
# $ua->agent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36');
$ua->conn_cache()->total_capacity(undef);
$Lingua::EN::NameCase::POSTNOMINAL = 0;
# RaiseError => 1 means DBI throws on failure before ever returning undef
my $dbh = DBI->connect("dbi:SQLite:dbname=$filename", undef, undef, { RaiseError => 1, AutoCommit => 0, synchronous => 0, locking_mode => 'EXCLUSIVE' });
$dbh->do('PRAGMA cache_size = -65536'); # 64MB
( run in 5.837 seconds using v1.01-cache-2.11-cpan-14f38c9f855 )