diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 20:39:44 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 20:39:44 +0200 |
commit | a760274c7c20570cf6380fc58682f649456a1268 (patch) | |
tree | a4ee607cb3fb7797b329c6f1be252b4fd53d1a99 | |
parent | d77566bba4fe89e6ae7ef6c0c1fb2bac6aeb7668 (diff) |
Invalidate stats cache after adding a new journey
-rwxr-xr-x | lib/Travelynx.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 ($@) { |