diff options
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index a56ba51..eea56a5 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -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'; } |