Unverified Commit d2c20165 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

The cache key must include the POST payload. Whoops.

parent c43c6bf0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 );