diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 09:29:38 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-19 09:29:38 +0100 |
commit | d2c20165d8976d4375195bd1255612422714d670 (patch) | |
tree | 9670104bb0de44b279f338f6ad85b639992da0e3 /lib/Travel/Routing/DE | |
parent | c43c6bf0cacc5e49a97ad9630639160a12fd8e0b (diff) |
The cache key must include the POST payload. Whoops.
Diffstat (limited to 'lib/Travel/Routing/DE')
-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 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 ); |