From a226458dfdf3f9867ae5070df2f2f62d9e9f4657 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 19 Jan 2025 07:26:36 +0100 Subject: DBRIS: Actually use cache --- lib/Travel/Routing/DE/DBRIS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Travel/Routing/DE/DBRIS.pm b/lib/Travel/Routing/DE/DBRIS.pm index 4a984f3..618e2b4 100644 --- a/lib/Travel/Routing/DE/DBRIS.pm +++ b/lib/Travel/Routing/DE/DBRIS.pm @@ -37,8 +37,8 @@ sub new { } my $self = { + cache => $conf{cache}, developer_mode => $conf{developer_mode}, - results => [], from => $conf{from}, to => $conf{to}, ua => $ua, @@ -117,7 +117,7 @@ sub new { time_zone => 'Europe/Berlin', ); - my $json = $self->{json} = JSON->new->utf8; + my $json = $self->{json} = JSON->new->utf8->canonical; if ( $conf{async} ) { $self->{req} = $req; -- cgit v1.2.3