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

Do not cache upstream CGI errors

parent 6dbea619
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -406,7 +406,9 @@ sub post_with_cache {

	if ($cache) {
		my $content = $cache->thaw( $self->{post} );
		if ($content) {
		if ( $content
			and not $content =~ m{ CGI_NO_SERVER | CGI_READ_FAILED }x )
		{
			if ( $self->{developer_mode} ) {
				say '  cache hit';
			}