From a760274c7c20570cf6380fc58682f649456a1268 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 26 Apr 2019 20:39:44 +0200 Subject: Invalidate stats cache after adding a new journey --- lib/Travelynx.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index ce2d739..f5fdb47 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -274,6 +274,7 @@ sub startup { $journey_id = $db->insert( 'journeys', $entry, { returning => 'id' } ) ->hash->{id}; + $self->invalidate_stats_cache( $opt{rt_departure}, $db ); }; if ($@) { -- cgit v1.2.3