From d2c20165d8976d4375195bd1255612422714d670 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 19 Jan 2025 09:29:38 +0100 Subject: The cache key must include the POST payload. Whoops. --- lib/Travel/Routing/DE/DBRIS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Travel/Routing/DE') diff --git a/lib/Travel/Routing/DE/DBRIS.pm b/lib/Travel/Routing/DE/DBRIS.pm index 1e76b03..7b26587 100644 --- a/lib/Travel/Routing/DE/DBRIS.pm +++ b/lib/Travel/Routing/DE/DBRIS.pm @@ -204,7 +204,7 @@ sub post_with_cache { } if ($cache) { - my $content = $cache->thaw($url); + my $content = $cache->thaw("$url $req"); if ($content) { if ( $self->{developer_mode} ) { say ' cache hit'; @@ -232,7 +232,7 @@ sub post_with_cache { my $content = $reply->content; if ($cache) { - $cache->freeze( $url, \$content ); + $cache->freeze( "$url $req", \$content ); } return ( $content, undef ); -- cgit v1.2.3