diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 07:26:36 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 07:26:36 +0100 |
commit | a226458dfdf3f9867ae5070df2f2f62d9e9f4657 (patch) | |
tree | 0267553463667514d96a5d542de1a447ae49f8a3 /lib | |
parent | 33cc19fca4c95c58e067e8e2df9bdf427be434e4 (diff) |
DBRIS: Actually use cache
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Routing/DE/DBRIS.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |